From ee4ef8d3a5138ddded462b1f2889c8669b55d622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 28 Jun 2021 01:03:27 +0200 Subject: [PATCH] Use labels to select filters in executions tests This way we check there's a label associated to these fields. --- spec/system/budgets/executions_spec.rb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/spec/system/budgets/executions_spec.rb b/spec/system/budgets/executions_spec.rb index 723b817c2..e1b362ad8 100644 --- a/spec/system/budgets/executions_spec.rb +++ b/spec/system/budgets/executions_spec.rb @@ -70,7 +70,7 @@ describe "Executions" do expect(page).to have_content("No winner investments in this state") - select "Executed (0)", from: "status" + select "Executed (0)", from: "Project's current state" expect(page).to have_content("No winner investments in this state") end @@ -165,17 +165,17 @@ describe "Executions" do expect(page).to have_content(investment1.title) expect(page).to have_content(investment2.title) - select "Studying the project (1)", from: "status" + select "Studying the project (1)", from: "Project's current state" expect(page).to have_content(investment1.title) expect(page).not_to have_content(investment2.title) - select "Bidding (1)", from: "status" + select "Bidding (1)", from: "Project's current state" expect(page).to have_content(investment2.title) expect(page).not_to have_content(investment1.title) - select "Executing the project (0)", from: "status" + select "Executing the project (0)", from: "Project's current state" expect(page).not_to have_content(investment1.title) expect(page).not_to have_content(investment2.title) @@ -194,10 +194,10 @@ describe "Executions" do click_link "See results" click_link "Milestones" - select "Studying the project (0)", from: "status" + select "Studying the project (0)", from: "Project's current state" expect(page).not_to have_content(investment1.title) - select "Bidding (1)", from: "status" + select "Bidding (1)", from: "Project's current state" expect(page).to have_content(investment1.title) end @@ -214,10 +214,10 @@ describe "Executions" do click_link "See results" click_link "Milestones" - select "Studying the project (1)", from: "status" + select "Studying the project (1)", from: "Project's current state" expect(page).to have_content(investment1.title) - select "Bidding (0)", from: "status" + select "Bidding (0)", from: "Project's current state" expect(page).not_to have_content(investment1.title) end @@ -240,27 +240,27 @@ describe "Executions" do expect(page).to have_content(investment1.title) expect(page).to have_content(investment2.title) - select "tag2 (2)", from: "milestone_tag" + select "tag2 (2)", from: "Milestone tag" expect(page).to have_content(investment1.title) expect(page).to have_content(investment2.title) - select "Studying the project (1)", from: "status" + select "Studying the project (1)", from: "Project's current state" expect(page).to have_content(investment1.title) expect(page).not_to have_content(investment2.title) - select "Bidding (1)", from: "status" + select "Bidding (1)", from: "Project's current state" expect(page).not_to have_content(investment1.title) expect(page).to have_content(investment2.title) - select "tag1 (1)", from: "milestone_tag" + select "tag1 (1)", from: "Milestone tag" expect(page).not_to have_content(investment1.title) expect(page).not_to have_content(investment2.title) - select "All (2)", from: "milestone_tag" + select "All (2)", from: "Milestone tag" expect(page).not_to have_content(investment1.title) expect(page).to have_content(investment2.title)