From e1febc6e0040f2be99bd190a2b82357a0faa5cb3 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 5 Dec 2024 16:41:36 +1100 Subject: [PATCH] Simplify page actions --- spec/system/admin/orders/bulk_actions_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/admin/orders/bulk_actions_spec.rb b/spec/system/admin/orders/bulk_actions_spec.rb index 9bf49bd932..cb77f6d414 100644 --- a/spec/system/admin/orders/bulk_actions_spec.rb +++ b/spec/system/admin/orders/bulk_actions_spec.rb @@ -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