mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Simplify page actions
This commit is contained in:
@@ -463,7 +463,7 @@ RSpec.describe '
|
||||
within ".reveal-modal" do
|
||||
uncheck "Send a cancellation email to the customer"
|
||||
expect {
|
||||
find_button("Cancel").click # Cancels the cancel action
|
||||
click_on "Cancel" # Cancels the cancel action
|
||||
}.not_to enqueue_mail
|
||||
end
|
||||
|
||||
@@ -474,7 +474,7 @@ RSpec.describe '
|
||||
|
||||
within ".reveal-modal" do
|
||||
expect {
|
||||
find_button("Confirm").click # Confirms the cancel action
|
||||
click_on "Confirm" # Confirms the cancel action
|
||||
}.not_to enqueue_mail
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user