Commit c13c1e1b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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: default 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