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
This commit is contained in:
Javi Martín
2021-04-15 17:09:25 +02:00
parent 8a2e159805
commit 47d75b4ec5

View File

@@ -26,8 +26,6 @@ describe "Admin legislation questions", :admin do
click_link "Collaborative Legislation" click_link "Collaborative Legislation"
end end
click_link "All"
within("tr", text: "An example legislation process") { click_link "Edit" } within("tr", text: "An example legislation process") { click_link "Edit" }
click_link "Debate" click_link "Debate"