mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix bulk order cancellation
Add unticking of "send cancellation email to customer" to match the current test expectation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user