Skip to content

Commit

Permalink
Sleep for 1 second before clicking in order spec
Browse files Browse the repository at this point in the history
We need to wait for the JS to be loaded and connected here, otherwise
the click doesn't do anything. There is an alternative fix for this in
solidusio#5782
  • Loading branch information
mamhoff committed Jun 12, 2024
1 parent 0c53451 commit 7937d03
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
it "lists products", :js do
visit "/admin/orders"

sleep 1

click_button "Filter"

within("div[role=search]") do
Expand Down

0 comments on commit 7937d03

Please sign in to comment.