Skip to content

Commit

Permalink
Mark flaky spec as flaky instead of sleep
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mamhoff committed Jun 14, 2024
1 parent 0f38660 commit 52c8b7c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52c8b7c

Please sign in to comment.