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
This commit is contained in:
Rémy Coutable 2018-06-19 15:30:57 +00:00
commit abdbe370a0
2 changed files with 8 additions and 0 deletions

View file

@ -65,7 +65,11 @@ feature 'Dashboard Groups page', :js do
fill_in 'filter', with: group.name
wait_for_requests
expect(page).to have_content(group.name)
expect(page).not_to have_content(nested_group.parent.name)
fill_in 'filter', with: ''
page.find('[name="filter"]').send_keys(:enter)
wait_for_requests
expect(page).to have_content(group.name)

View file

@ -35,7 +35,11 @@ describe 'Explore Groups page', :js do
fill_in 'filter', with: group.name
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: ""
page.find('[name="filter"]').send_keys(:enter)
wait_for_requests
expect(page).to have_content(group.full_name)