Commit 524fa33a authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Fix es group search specs

parent 1574a921
......@@ -6,7 +6,7 @@ feature 'Group elastic search', js: true, feature: true do
let(:project) { create(:project, namespace: group) }
def choose_group(group)
find('.js-search-group-dropdown').click
find('.js-search-group-dropdown').trigger('click')
wait_for_ajax
page.within '.search-holder' do
......@@ -41,7 +41,7 @@ feature 'Group elastic search', js: true, feature: true do
choose_group group
fill_in 'search', with: 'chosen'
click_button 'Search'
find('.btn-search').trigger('click')
select_filter('Issues')
expect(page).to have_content('chosen issue title')
......@@ -60,7 +60,7 @@ feature 'Group elastic search', js: true, feature: true do
choose_group group
fill_in 'search', with: 'def'
click_button 'Search'
find('.btn-search').trigger('click')
select_filter('Code')
......@@ -83,7 +83,7 @@ feature 'Group elastic search', js: true, feature: true do
choose_group group
fill_in "search", with: "term"
click_button "Search"
find('.btn-search').trigger('click')
select_filter("Wiki")
......@@ -104,7 +104,7 @@ feature 'Group elastic search', js: true, feature: true do
choose_group group
fill_in 'search', with: 'add'
click_button 'Search'
find('.btn-search').trigger('click')
select_filter('Commits')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment