From 47d75b4ec5b1e2793db97c7eec4d49f19b6bd19c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 15 Apr 2021 17:09:25 +0200 Subject: [PATCH] Remove redundant click in legislation spec The link to edit the process is already present before clicking the "All" link, which meant the test failed sometimes because Capybara might try to click on the "Edit" link at the same time the page is changing due to the click on the "All" link". Due to this issue, this test has failed at least one in our CI [1]. [1] https://github.com/consul/consul/runs/2324773853 --- spec/system/admin/legislation/questions_spec.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/spec/system/admin/legislation/questions_spec.rb b/spec/system/admin/legislation/questions_spec.rb index 5c3ec810b..67601cb59 100644 --- a/spec/system/admin/legislation/questions_spec.rb +++ b/spec/system/admin/legislation/questions_spec.rb @@ -26,8 +26,6 @@ describe "Admin legislation questions", :admin do click_link "Collaborative Legislation" end - click_link "All" - within("tr", text: "An example legislation process") { click_link "Edit" } click_link "Debate"