BigW Consortium Gitlab

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: 's avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 8a910ba2
......@@ -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
......
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