From 74e7bd5172b01187d7de92ab00dd6782055dbaf6 Mon Sep 17 00:00:00 2001 From: Cillian O'Ruanaidh Date: Fri, 29 Aug 2025 14:45:44 +0100 Subject: [PATCH] Update spec/system/consumer/shopping/cart_spec.rb test to use new disabled selector --- spec/system/consumer/shopping/cart_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/system/consumer/shopping/cart_spec.rb b/spec/system/consumer/shopping/cart_spec.rb index ed039bc28d..6026f20d5e 100644 --- a/spec/system/consumer/shopping/cart_spec.rb +++ b/spec/system/consumer/shopping/cart_spec.rb @@ -241,8 +241,8 @@ RSpec.describe "full-page cart" do 'Please update the selected quantities.' # "Continue Shopping" and "Checkout" buttons are disabled - expect(page).to have_selector "a.continue-shopping[disabled=disabled]" - expect(page).to have_selector "a#checkout-link[disabled=disabled]" + expect(page).to have_selector "a.continue-shopping[aria-disabled=true]" + expect(page).to have_selector "a#checkout-link[aria-disabled=true]" # Quantity field clearly marked as invalid and "Update" button is not highlighted expect(page).to have_selector "#order_line_items_attributes_0_quantity.ng-invalid-stock" @@ -260,8 +260,8 @@ RSpec.describe "full-page cart" do click_button 'Update' # "Continue Shopping" and "Checkout" buttons are not disabled after cart is updated - expect(page).not_to have_selector "a.continue-shopping[disabled=disabled]" - expect(page).not_to have_selector "a#checkout-link[disabled=disabled]" + expect(page).not_to have_selector "a.continue-shopping[aria-disabled=true]" + expect(page).not_to have_selector "a#checkout-link[aria-disabled=true]" end end end