diff --git a/test/system/invoices_test.rb b/test/system/invoices_test.rb index 52905cad1..aeaffd8d7 100644 --- a/test/system/invoices_test.rb +++ b/test/system/invoices_test.rb @@ -27,7 +27,7 @@ def test_user_can_update_billing_profile_on_issued_invoice click_link_or_button('Change billing profile') # select_from_dropdown('Joe John Participant', from: 'invoice[billing_profile_id]') - select 'Joe John Participant', from: 'invoice[billing_profile_id]' + select 'Joe John Participant', from: 'invoice_billing_profile_id' click_link_or_button('Submit') @@ -46,8 +46,8 @@ def test_user_cannot_update_billing_profile_on_paid_invoice visit edit_invoice_path(@invoice.uuid) # select_from_dropdown('Joe John Participant', from: 'invoice[billing_profile_id]') - select 'Joe John Participant', from: 'invoice[billing_profile_id]' - + select 'Joe John Participant', from: 'invoice_billing_profile_id' + click_link_or_button('Submit') assert_text('Something went wrong.')