mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-17 00:07:24 +00:00
Update error field counts
This commit is contained in:
committed by
Jean-Baptiste Bellet
parent
ac317bc3ce
commit
f3dc1c80cf
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user