diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-12 10:52:30 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-12 10:52:30 +0300 |
commit | 8c4e40205ab971c11d71a58f45454a5bd7dd9a2e (patch) | |
tree | e6a72c44bc86cd2cad0dabc170c33e5977519517 /spec/features | |
parent | a05db435b49214b70796ff48b6b1f7e92c55903f (diff) | |
parent | 65c2f43fd31bdd2659d12e8eb5169ad2f32d19ba (diff) |
Merge branch 'as-fix-spec-master' into 'master'
Use .trigger(‘click’) instead of .click
See merge request !11317
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/boards/sidebar_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/dashboard/milestone_filter_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/boards/sidebar_spec.rb b/spec/features/boards/sidebar_spec.rb index 11ef8e1f61b..1238647d3f3 100644 --- a/spec/features/boards/sidebar_spec.rb +++ b/spec/features/boards/sidebar_spec.rb @@ -158,7 +158,7 @@ describe 'Issue Boards', feature: true, js: true do end page.within(first('.board')) do - find('.card:nth-child(2)').click + find('.card:nth-child(2)').trigger('click') end page.within('.assignee') do diff --git a/spec/features/dashboard/milestone_filter_spec.rb b/spec/features/dashboard/milestone_filter_spec.rb index 628627f70d4..e9ca7fd50e7 100644 --- a/spec/features/dashboard/milestone_filter_spec.rb +++ b/spec/features/dashboard/milestone_filter_spec.rb @@ -43,7 +43,7 @@ describe 'Dashboard > milestone filter', feature: true, js: true do end it 'should not change active Milestone unless clicked' do - find(milestone_select).click + find(milestone_select).trigger('click') expect(find('.dropdown-content')).to have_selector('a.is-active', count: 1) |