Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(form-field-checkbox): fix e2e snapshot (checkbox and radio) #870

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ exports[`gux-form-field-checkbox #render should render component as expected (2)
</div>
`;

exports[`gux-form-field-checkbox #render should render component as expected (3) 1`] = `"<gux-form-field-checkbox class="gux-input-error" hydrated=""><template shadowrootmode="open"><div class="gux-form-field-container"><div class="gux-input-label"><div class="gux-input"><slot name="input"></slot></div><div class="gux-label-beside" aria-disabled="false"><slot name="label"></slot></div></div><div class="error-and-help-text"><div class="gux-form-field-error gux-show"><gux-icon icon-name="fa/hexagon-exclamation-solid" size="inherit" hydrated=""></gux-icon><div class="gux-message"><slot name="error"></slot></div></div><div class="gux-form-field-help"><div class="gux-message"><slot name="help"></slot></div></div></div></div></template> <input slot="input" type="checkbox" name="food-1[]" value="pizza" id="gux-form-field-input-i" aria-describedby="gux-form-field-error-i"> <label slot="label" for="gux-form-field-input-i">Pizza</label> <span slot="error" id="gux-form-field-error-i">This is an error message</span> </gux-form-field-checkbox>"`;
exports[`gux-form-field-checkbox #render should render component as expected (3) 1`] = `"<gux-form-field-checkbox class="gux-input-error" hydrated=""><template shadowrootmode="open"><div class="gux-form-field-container"><div class="gux-input-label"><div class="gux-input"><slot name="input"></slot></div><div class="gux-label-beside" aria-disabled="false"><slot name="label"></slot></div></div><div class="error-and-help-text"><div class="gux-form-field-error gux-show"><gux-icon icon-name="fa/hexagon-exclamation-solid" size="inherit" hydrated=""></gux-icon><div class="gux-message"><slot name="error"></slot></div></div><div class="gux-form-field-help"><div class="gux-message"><slot name="help"></slot></div></div></div></div></template> <input slot="input" type="checkbox" name="food-1[]" value="pizza" id="gux-form-field-input-i" aria-invalid="true" aria-describedby="gux-form-field-error-i"> <label slot="label" for="gux-form-field-input-i">Pizza</label> <span slot="error" id="gux-form-field-error-i">This is an error message</span> </gux-form-field-checkbox>"`;

exports[`gux-form-field-checkbox #render should render component as expected (3) 2`] = `
<div class="gux-form-field-container">
@@ -112,7 +112,7 @@ exports[`gux-form-field-checkbox #render should render component as expected (4)
</div>
`;

exports[`gux-form-field-checkbox #render should render component as expected (5) 1`] = `"<gux-form-field-checkbox class="gux-input-error" hydrated=""><template shadowrootmode="open"><div class="gux-form-field-container"><div class="gux-input-label"><div class="gux-input"><slot name="input"></slot></div><div class="gux-label-beside" aria-disabled="false"><slot name="label"></slot></div></div><div class="error-and-help-text"><div class="gux-form-field-error gux-show"><gux-icon icon-name="fa/hexagon-exclamation-solid" size="inherit" hydrated=""></gux-icon><div class="gux-message"><slot name="error"></slot></div></div><div class="gux-form-field-help"><div class="gux-message"><slot name="help"></slot></div></div></div></div></template> <input slot="input" type="checkbox" name="food-1[]" value="pizza" id="gux-form-field-input-i" aria-describedby="gux-form-field-error-i"> <label slot="label" for="gux-form-field-input-i">Pizza</label> <span slot="error" id="gux-form-field-error-i">Error message</span> </gux-form-field-checkbox>"`;
exports[`gux-form-field-checkbox #render should render component as expected (5) 1`] = `"<gux-form-field-checkbox class="gux-input-error" hydrated=""><template shadowrootmode="open"><div class="gux-form-field-container"><div class="gux-input-label"><div class="gux-input"><slot name="input"></slot></div><div class="gux-label-beside" aria-disabled="false"><slot name="label"></slot></div></div><div class="error-and-help-text"><div class="gux-form-field-error gux-show"><gux-icon icon-name="fa/hexagon-exclamation-solid" size="inherit" hydrated=""></gux-icon><div class="gux-message"><slot name="error"></slot></div></div><div class="gux-form-field-help"><div class="gux-message"><slot name="help"></slot></div></div></div></div></template> <input slot="input" type="checkbox" name="food-1[]" value="pizza" id="gux-form-field-input-i" aria-invalid="true" aria-describedby="gux-form-field-error-i"> <label slot="label" for="gux-form-field-input-i">Pizza</label> <span slot="error" id="gux-form-field-error-i">Error message</span> </gux-form-field-checkbox>"`;

exports[`gux-form-field-checkbox #render should render component as expected (5) 2`] = `
<div class="gux-form-field-container">
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ exports[`gux-form-field-radio #render should render component as expected (2) 2`
</div>
`;

exports[`gux-form-field-radio #render should render component as expected (3) 1`] = `"<gux-form-field-radio class="gux-input-error" hydrated=""><template shadowrootmode="open"><div class="gux-form-field-container" aria-disabled="false"><div class="gux-input-label"><div class="gux-input"><slot name="input"></slot></div><div class="gux-label"><slot name="label"></slot></div></div><div class="error-and-help-text"><div class="gux-form-field-error gux-show"><gux-icon icon-name="fa/hexagon-exclamation-solid" size="inherit" hydrated=""></gux-icon><div class="gux-message"><slot name="error"></slot></div></div><div class="gux-form-field-help"><div class="gux-message"><slot name="help"></slot></div></div></div></div></template> <input slot="input" type="radio" name="food-1" value="pizza" id="gux-form-field-input-i" aria-describedby="gux-form-field-error-i"> <label slot="label" for="gux-form-field-input-i">Pizza</label> <span slot="error" id="gux-form-field-error-i">This is an error message</span> </gux-form-field-radio>"`;
exports[`gux-form-field-radio #render should render component as expected (3) 1`] = `"<gux-form-field-radio class="gux-input-error" hydrated=""><template shadowrootmode="open"><div class="gux-form-field-container" aria-disabled="false"><div class="gux-input-label"><div class="gux-input"><slot name="input"></slot></div><div class="gux-label"><slot name="label"></slot></div></div><div class="error-and-help-text"><div class="gux-form-field-error gux-show"><gux-icon icon-name="fa/hexagon-exclamation-solid" size="inherit" hydrated=""></gux-icon><div class="gux-message"><slot name="error"></slot></div></div><div class="gux-form-field-help"><div class="gux-message"><slot name="help"></slot></div></div></div></div></template> <input slot="input" type="radio" name="food-1" value="pizza" id="gux-form-field-input-i" aria-invalid="true" aria-describedby="gux-form-field-error-i"> <label slot="label" for="gux-form-field-input-i">Pizza</label> <span slot="error" id="gux-form-field-error-i">This is an error message</span> </gux-form-field-radio>"`;

exports[`gux-form-field-radio #render should render component as expected (3) 2`] = `
<div aria-disabled="false" class="gux-form-field-container">
@@ -112,7 +112,7 @@ exports[`gux-form-field-radio #render should render component as expected (4) 2`
</div>
`;

exports[`gux-form-field-radio #render should render component as expected (5) 1`] = `"<gux-form-field-radio class="gux-input-error" hydrated=""><template shadowrootmode="open"><div class="gux-form-field-container" aria-disabled="false"><div class="gux-input-label"><div class="gux-input"><slot name="input"></slot></div><div class="gux-label"><slot name="label"></slot></div></div><div class="error-and-help-text"><div class="gux-form-field-error gux-show"><gux-icon icon-name="fa/hexagon-exclamation-solid" size="inherit" hydrated=""></gux-icon><div class="gux-message"><slot name="error"></slot></div></div><div class="gux-form-field-help"><div class="gux-message"><slot name="help"></slot></div></div></div></div></template> <input slot="input" type="radio" name="food-1" value="pizza" id="gux-form-field-input-i" aria-describedby="gux-form-field-error-i"> <label slot="label" for="gux-form-field-input-i">Pizza</label> <span slot="error" id="gux-form-field-error-i">Error message</span> </gux-form-field-radio>"`;
exports[`gux-form-field-radio #render should render component as expected (5) 1`] = `"<gux-form-field-radio class="gux-input-error" hydrated=""><template shadowrootmode="open"><div class="gux-form-field-container" aria-disabled="false"><div class="gux-input-label"><div class="gux-input"><slot name="input"></slot></div><div class="gux-label"><slot name="label"></slot></div></div><div class="error-and-help-text"><div class="gux-form-field-error gux-show"><gux-icon icon-name="fa/hexagon-exclamation-solid" size="inherit" hydrated=""></gux-icon><div class="gux-message"><slot name="error"></slot></div></div><div class="gux-form-field-help"><div class="gux-message"><slot name="help"></slot></div></div></div></div></template> <input slot="input" type="radio" name="food-1" value="pizza" id="gux-form-field-input-i" aria-invalid="true" aria-describedby="gux-form-field-error-i"> <label slot="label" for="gux-form-field-input-i">Pizza</label> <span slot="error" id="gux-form-field-error-i">Error message</span> </gux-form-field-radio>"`;

exports[`gux-form-field-radio #render should render component as expected (5) 2`] = `
<div aria-disabled="false" class="gux-form-field-container">
@@ -140,7 +140,7 @@ exports[`gux-form-field-radio #render should render component as expected (5) 2`
</div>
`;

exports[`gux-form-field-radio #render should render component as expected (6) 1`] = `"<gux-form-field-radio class="gux-input-error gux-disabled" hydrated=""><template shadowrootmode="open"><div class="gux-form-field-container" aria-disabled="true"><div class="gux-input-label"><div class="gux-input"><slot name="input"></slot></div><div class="gux-label"><slot name="label"></slot></div></div><div class="error-and-help-text"><div class="gux-form-field-error gux-show"><gux-icon icon-name="fa/hexagon-exclamation-solid" size="inherit" hydrated=""></gux-icon><div class="gux-message"><slot name="error"></slot></div></div><div class="gux-form-field-help"><div class="gux-message"><slot name="help"></slot></div></div></div></div></template> <input slot="input" type="radio" name="food-1" value="pizza" disabled="" id="gux-form-field-input-i" aria-describedby="gux-form-field-error-i"> <label slot="label" for="gux-form-field-input-i">Pizza</label> <span slot="error" id="gux-form-field-error-i">Error message</span> </gux-form-field-radio>"`;
exports[`gux-form-field-radio #render should render component as expected (6) 1`] = `"<gux-form-field-radio class="gux-input-error gux-disabled" hydrated=""><template shadowrootmode="open"><div class="gux-form-field-container" aria-disabled="true"><div class="gux-input-label"><div class="gux-input"><slot name="input"></slot></div><div class="gux-label"><slot name="label"></slot></div></div><div class="error-and-help-text"><div class="gux-form-field-error gux-show"><gux-icon icon-name="fa/hexagon-exclamation-solid" size="inherit" hydrated=""></gux-icon><div class="gux-message"><slot name="error"></slot></div></div><div class="gux-form-field-help"><div class="gux-message"><slot name="help"></slot></div></div></div></div></template> <input slot="input" type="radio" name="food-1" value="pizza" disabled="" id="gux-form-field-input-i" aria-invalid="true" aria-describedby="gux-form-field-error-i"> <label slot="label" for="gux-form-field-input-i">Pizza</label> <span slot="error" id="gux-form-field-error-i">Error message</span> </gux-form-field-radio>"`;

exports[`gux-form-field-radio #render should render component as expected (6) 2`] = `
<div aria-disabled="true" class="gux-form-field-container">