diff --git a/backend/spec/features/admin/orders/customer_returns_spec.rb b/backend/spec/features/admin/orders/customer_returns_spec.rb index 927fbdcdc91..a3d8d98a3b5 100644 --- a/backend/spec/features/admin/orders/customer_returns_spec.rb +++ b/backend/spec/features/admin/orders/customer_returns_spec.rb @@ -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