Update error field counts

This commit is contained in:
Matt-Yorkley
2021-11-11 17:47:59 +00:00
committed by Jean-Baptiste Bellet
parent ac317bc3ce
commit f3dc1c80cf

View File

@@ -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