Don't show order links in selected proposals list

This commit is contained in:
Julian Herrero
2019-05-24 16:53:40 +02:00
parent 6e905c517f
commit 4be4d96710
2 changed files with 19 additions and 1 deletions

View File

@@ -997,6 +997,22 @@ feature "Proposals" do
expect(page).not_to have_link "Recommended"
expect(page).not_to have_link "See more recommendations"
end
scenario "do not show order links in selected proposals list" do
visit proposals_path
expect(page).to have_css "ul.submenu"
expect(page).to have_link "most active"
expect(page).to have_link "highest rated"
expect(page).to have_link "newest"
click_link "Selected proposals"
expect(page).not_to have_css "ul.submenu"
expect(page).not_to have_link "most active"
expect(page).not_to have_link "highest rated"
expect(page).not_to have_link "newest"
end
end
context "Search" do