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,12 +166,16 @@ module SharedProject ...@@ -166,12 +166,16 @@ module SharedProject
end end
step 'I should see project "Internal"' do step 'I should see project "Internal"' do
page.within '.js-projects-list-holder' do
expect(page).to have_content "Internal" expect(page).to have_content "Internal"
end end
end
step 'I should not see project "Internal"' do step 'I should not see project "Internal"' do
page.within '.js-projects-list-holder' do
expect(page).not_to have_content "Internal" expect(page).not_to have_content "Internal"
end end
end
step 'public project "Community"' do step 'public project "Community"' do
create(:project, :public, :repository, name: 'Community') create(:project, :public, :repository, name: 'Community')
......
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