Improve explore projects spinach test

Project name "Internal" is too generic and can lead to false
positive/negative when there is a visibility filter on the page. So we
ensure we check for project inside list holder css class.

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2017-03-04 15:30:12 +02:00
parent 8a910ba297
commit c13c1e1b16
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -166,11 +166,15 @@ module SharedProject
end
step 'I should see project "Internal"' do
expect(page).to have_content "Internal"
page.within '.js-projects-list-holder' do
expect(page).to have_content "Internal"
end
end
step 'I should not see project "Internal"' do
expect(page).not_to have_content "Internal"
page.within '.js-projects-list-holder' do
expect(page).not_to have_content "Internal"
end
end
step 'public project "Community"' do