summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-05-12 15:14:55 -0500
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-05-12 15:14:55 -0500
commitc757000e83f57eb9e71dbf5505a3b1cd21bd8105 (patch)
treea7845eb32451b38b4edf3ce55a5f07f2205fb792 /spec/features
parentb29414dfc0b5f24c3773596eae7bb9a70275a44e (diff)
downloadgitlab-ce-c757000e83f57eb9e71dbf5505a3b1cd21bd8105.tar.gz
Fix specs
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/merge_requests/diff_notes_resolve_spec.rb2
-rw-r--r--spec/features/search_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/merge_requests/diff_notes_resolve_spec.rb b/spec/features/merge_requests/diff_notes_resolve_spec.rb
index 0e23c3a8849..4d549f3bdbb 100644
--- a/spec/features/merge_requests/diff_notes_resolve_spec.rb
+++ b/spec/features/merge_requests/diff_notes_resolve_spec.rb
@@ -275,7 +275,7 @@ feature 'Diff notes resolve', feature: true, js: true do
end
page.within '.line-resolve-all-container' do
- page.find('.discussion-next-btn').click
+ page.find('.discussion-next-btn').trigger('click')
end
expect(page.evaluate_script("$('body').scrollTop()")).to be > 0
diff --git a/spec/features/search_spec.rb b/spec/features/search_spec.rb
index 3b04435e385..2fda7758407 100644
--- a/spec/features/search_spec.rb
+++ b/spec/features/search_spec.rb
@@ -38,7 +38,7 @@ describe "Search", feature: true do
end
it 'filters by group projects after filtering by group' do
- find('.js-search-group-dropdown').click
+ find('.js-search-group-dropdown').trigger('click')
wait_for_ajax
page.within '.search-holder' do
@@ -48,7 +48,7 @@ describe "Search", feature: true do
expect(find('.js-search-group-dropdown')).to have_content(group.name)
page.within('.project-filter') do
- find('.js-search-project-dropdown').click
+ find('.js-search-project-dropdown').trigger('click')
wait_for_ajax
expect(page).to have_link(group_project.name_with_namespace)