Fix bulk order cancellation

Add unticking of "send cancellation email to customer" to match
the current test expectation
This commit is contained in:
Gaetan Craig-Riou
2023-06-20 10:03:55 +10:00
parent f6db69104f
commit ea73781668

View File

@@ -554,6 +554,8 @@ distributors: [distributor4, distributor5]) }
expect(page).to have_content "This will cancel the current order."
within ".reveal-modal" do
# Untick SEND A CANCELLATION EMAIL TO THE CUSTOMER
page.find("input[id='send_cancellation_email']").click
expect {
find_button("Cancel").click # Cancels the cancel action
}.to_not enqueue_job(ActionMailer::MailDeliveryJob).exactly(:twice)