Ensure next page has loaded before interacting with form elements

This commit is contained in:
Matt-Yorkley
2020-07-07 10:31:54 +02:00
parent 312e78ba61
commit be1e39f0cb

View File

@@ -87,6 +87,7 @@ feature '
select 'Supplier fee 2', from: 'order_cycle_incoming_exchange_2_enterprise_fees_0_enterprise_fee_id'
click_button 'Save and Next'
expect(page).to have_content 'Your order cycle has been updated.'
# And I add a distributor and some products
select 'My distributor', from: 'new_distributor_id'