Commit abdbe370 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix-flakey-groups-filter-list-specs' into 'master'

Fix flakey time-senstive group filter specs

See merge request gitlab-org/gitlab-ce!19880
parents 9092e96a a1d0a16b
...@@ -65,7 +65,11 @@ feature 'Dashboard Groups page', :js do ...@@ -65,7 +65,11 @@ feature 'Dashboard Groups page', :js do
fill_in 'filter', with: group.name fill_in 'filter', with: group.name
wait_for_requests wait_for_requests
expect(page).to have_content(group.name)
expect(page).not_to have_content(nested_group.parent.name)
fill_in 'filter', with: '' fill_in 'filter', with: ''
page.find('[name="filter"]').send_keys(:enter)
wait_for_requests wait_for_requests
expect(page).to have_content(group.name) expect(page).to have_content(group.name)
......
...@@ -35,7 +35,11 @@ describe 'Explore Groups page', :js do ...@@ -35,7 +35,11 @@ describe 'Explore Groups page', :js do
fill_in 'filter', with: group.name fill_in 'filter', with: group.name
wait_for_requests wait_for_requests
expect(page).to have_content(group.full_name)
expect(page).not_to have_content(public_group.full_name)
fill_in 'filter', with: "" fill_in 'filter', with: ""
page.find('[name="filter"]').send_keys(:enter)
wait_for_requests wait_for_requests
expect(page).to have_content(group.full_name) expect(page).to have_content(group.full_name)
......
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