Fix flaky legislation draft version spec

The test was failing sometimes, probably because the "Edit" link within
the "An example legislation process" row is already present before
clicking the "All" link. This can lead to simultaneous requests.

Just removing the unnecessary click on the "All" link solves the issue.
This commit is contained in:
Javi Martín
2021-08-29 02:42:37 +02:00
parent 713ae540b0
commit 40e339d23d

View File

@@ -27,7 +27,6 @@ describe "Admin legislation draft versions", :admin do
click_link "Collaborative Legislation"
end
click_link "All"
within("tr", text: "An example legislation process") { click_link "Edit" }
click_link "Drafting"