From 40e339d23da33ab1bfbae5d5358bc46a3e286d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 29 Aug 2021 02:42:37 +0200 Subject: [PATCH] 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. --- spec/system/admin/legislation/draft_versions_spec.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/system/admin/legislation/draft_versions_spec.rb b/spec/system/admin/legislation/draft_versions_spec.rb index 0f41cd823..d36daf6e2 100644 --- a/spec/system/admin/legislation/draft_versions_spec.rb +++ b/spec/system/admin/legislation/draft_versions_spec.rb @@ -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"