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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user