Skip to content

Commit

Permalink
Test: Wait a little longer to find delete product button
Browse files Browse the repository at this point in the history
Sometimes it takes a bit longer to render this button.
  • Loading branch information
tvdeyen committed Oct 30, 2024
1 parent b60ed4a commit 7ce7fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/spec/features/products_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
select_row("Just a product")

accept_confirm("Are you sure you want to delete 1 product?") do
click_button "Delete"
click_button("Delete", wait: 5)
end

expect(page).to have_content("Products were successfully removed.", wait: 5)
Expand Down

0 comments on commit 7ce7fd0

Please sign in to comment.