Don't show order links in selected proposals list
This commit is contained in:
@@ -82,7 +82,9 @@
|
|||||||
search_path: proposals_path(page: 1) %>
|
search_path: proposals_path(page: 1) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% unless params[:selected].present? %>
|
||||||
<%= render "shared/order_links", i18n_namespace: "proposals.index" %>
|
<%= render "shared/order_links", i18n_namespace: "proposals.index" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% if @proposals.any? %>
|
<% if @proposals.any? %>
|
||||||
<div class="show-for-small-only">
|
<div class="show-for-small-only">
|
||||||
|
|||||||
@@ -997,6 +997,22 @@ feature "Proposals" do
|
|||||||
expect(page).not_to have_link "Recommended"
|
expect(page).not_to have_link "Recommended"
|
||||||
expect(page).not_to have_link "See more recommendations"
|
expect(page).not_to have_link "See more recommendations"
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
context "Search" do
|
context "Search" do
|
||||||
|
|||||||
Reference in New Issue
Block a user