Make investment filters easier to understand
So now: * In the first few phases, no filters are shown (just like before) * During the valuation phase, we show "Active" and "Unfeasible" * During the final voting, we show "Active" (which now refers to the selected investments), "Not selected for the final voting" and "Unfeasible" * When the budget is finished, we show "Winners", "Not selected for the final voting" and "Unfeasible" Now each investment is shown in one (and only one) of the filters (except when the budget is finished; in this case we don't show selected investments which didn't win), and we remove the confusing "Not unfeasible" filter by only showing it during the valuation phase (before filters are selected) and renaming it to "Active". We also rearrange the filters so the default one for each phase is shown first. The idea of using the "Active" text for investments which can be selected during the selection phase and voted during the final voting is experimental. Right now, for simplicity, since we assume filters will always use the same text, we're removing the "Active" filter when the budget is finished, since having both "Winners" and "Active" filters would be confusing.
This commit is contained in:
@@ -144,42 +144,22 @@ describe "Budget Investments" do
|
||||
|
||||
expect(page).to have_content "FILTERING PROJECTS BY"
|
||||
|
||||
click_link "Feasible"
|
||||
|
||||
expect(page).to have_css ".budget-investment", count: 1
|
||||
expect(page).to have_content "Feasible investment"
|
||||
|
||||
click_link "Unfeasible"
|
||||
|
||||
expect(page).to have_content "Unfeasible investment"
|
||||
expect(page).to have_css ".budget-investment", count: 1
|
||||
|
||||
click_link "Unselected"
|
||||
click_link "Not selected for the final voting"
|
||||
|
||||
expect(page).to have_css ".budget-investment", count: 3
|
||||
expect(page).to have_content "Unselected investment"
|
||||
expect(page).to have_content "Unclassified investment"
|
||||
expect(page).to have_content "Feasible investment"
|
||||
|
||||
click_link "Selected"
|
||||
|
||||
expect(page).to have_css ".budget-investment", count: 2
|
||||
expect(page).to have_content "Selected investment"
|
||||
expect(page).to have_content "Winner investment"
|
||||
|
||||
click_link "Winners"
|
||||
|
||||
expect(page).to have_css ".budget-investment", count: 1
|
||||
expect(page).to have_content "Winner investment"
|
||||
|
||||
click_link "Feasible or with undecided feasibility"
|
||||
|
||||
expect(page).to have_css ".budget-investment", count: 5
|
||||
expect(page).to have_content "Selected investment"
|
||||
expect(page).to have_content "Unselected investment"
|
||||
expect(page).to have_content "Feasible investment"
|
||||
expect(page).to have_content "Unclassified investment"
|
||||
expect(page).to have_content "Winner investment"
|
||||
end
|
||||
|
||||
context("Search") do
|
||||
|
||||
Reference in New Issue
Block a user