From f3dc1c80cf93cd17b100041c3523c30d1c4e6334 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 11 Nov 2021 17:47:59 +0000 Subject: [PATCH] Update error field counts --- spec/system/consumer/split_checkout_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/system/consumer/split_checkout_spec.rb b/spec/system/consumer/split_checkout_spec.rb index fb3df41274..e152e04334 100644 --- a/spec/system/consumer/split_checkout_spec.rb +++ b/spec/system/consumer/split_checkout_spec.rb @@ -78,9 +78,9 @@ describe "As a consumer, I want to checkout my order", js: true do it "should display error when fields are empty" do click_button "Next - Payment method" expect(page).to have_content("Saving failed, please update the highlighted fields") - expect(page).to have_css 'span.field_with_errors label', count: 6 - expect(page).to have_css 'span.field_with_errors input', count: 6 - expect(page).to have_css 'span.formError', count: 6 + expect(page).to have_css 'span.field_with_errors label', count: 4 + expect(page).to have_css 'span.field_with_errors input', count: 4 + expect(page).to have_css 'span.formError', count: 5 end it "should validate once each needed field is filled" do