Skip to content

Commit

Permalink
Test: Give "Receive" button more time to render
Browse files Browse the repository at this point in the history
This is a flaky test, so give Capybara it bit more time
to find the button.
  • Loading branch information
tvdeyen committed Oct 31, 2024
1 parent b4c03f2 commit e0b78d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def expect_order_state_label_to_eq(text)
within('[data-hook="rejected_return_items"] tbody tr:nth-child(1)') do
click_button('Receive')

expect(page).to have_button("Receive", disabled: true)
expect(page).to have_button("Receive", disabled: true, wait: 5)
end
end

Expand Down

0 comments on commit e0b78d0

Please sign in to comment.