From 52c8b7c41143c352b077e1ca4a063f676b90b0f9 Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Fri, 14 Jun 2024 09:54:09 +0200 Subject: [PATCH] Mark flaky spec as flaky instead of sleep This marks the legacy promotions order index spec as flaky so that we get two retries if it fails. Better than just sending the process to sleep for a second. --- .../spec/features/solidus_admin/orders/index_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/legacy_promotions/spec/features/solidus_admin/orders/index_spec.rb b/legacy_promotions/spec/features/solidus_admin/orders/index_spec.rb index 6753742fb57..2c7157050d1 100644 --- a/legacy_promotions/spec/features/solidus_admin/orders/index_spec.rb +++ b/legacy_promotions/spec/features/solidus_admin/orders/index_spec.rb @@ -9,11 +9,9 @@ before { sign_in create(:admin_user, email: "admin@example.com") } - it "lists products", :js do + it "lists products", :js, :flaky do visit "/admin/orders" - sleep 1 - click_button "Filter" within("div[role=search]") do