diff --git a/spec/system/admin/orders_spec.rb b/spec/system/admin/orders_spec.rb index cb271921f2..cc9a766a61 100644 --- a/spec/system/admin/orders_spec.rb +++ b/spec/system/admin/orders_spec.rb @@ -432,7 +432,7 @@ describe ' expect(page).to have_content "Are you sure you want to proceed?" expect(page).to have_content "This will cancel the current order." - within "#custom-confirm.modal" do + within ".reveal-modal" do expect { find_button("Cancel").click # Cancels the cancel action }.to_not enqueue_job(ActionMailer::MailDeliveryJob).exactly(:twice) @@ -443,9 +443,9 @@ describe ' page.find("span", text: "Cancel Orders").click end - within "#custom-confirm.modal" do + within ".reveal-modal" do expect { - find_button("OK").click # Confirms the cancel action + find_button("Confirm").click # Confirms the cancel action }.to_not enqueue_job(ActionMailer::MailDeliveryJob).exactly(:twice) end