Skip to content

Commit

Permalink
[#378] Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
febdao committed Dec 1, 2024
1 parent 7d62ea9 commit ca14ca4
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ exports[`Checkbox Component renders with optional attributes 1`] = `
<input
aria-describedby="test-checkbox-id-message"
aria-invalid="true"
checked=""
class="ct-checkbox ct-theme-dark ct-checkbox--is-invalid custom-class"
data-test="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ exports[`Field Message Component allows HTML content 1`] = `
<div
class="ct-field-message ct-theme-light ct-field-message--information "
id=""
>
Expand Down Expand Up @@ -57,6 +58,7 @@ exports[`Field Message Component renders with additional attributes and classes
<div
class="ct-field-message ct-theme-light ct-field-message--information custom-modifier"
data-test="true"
id=""
>
Expand Down Expand Up @@ -94,6 +96,7 @@ exports[`Field Message Component renders with custom theme and type 1`] = `
<div
class="ct-field-message ct-theme-dark ct-field-message--error "
id=""
>
Expand Down Expand Up @@ -131,6 +134,7 @@ exports[`Field Message Component renders with default values 1`] = `
<div
class="ct-field-message ct-theme-light ct-field-message--information "
id=""
>
Expand Down Expand Up @@ -168,6 +172,7 @@ exports[`Field Message Component renders with icons 1`] = `
<div
class="ct-field-message ct-theme-light ct-field-message--warning "
id=""
>
Expand Down Expand Up @@ -205,6 +210,7 @@ exports[`Field Message Component strips HTML content 1`] = `
<div
class="ct-field-message ct-theme-light ct-field-message--information "
id=""
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ exports[`Fieldset Component renders with message 1`] = `
<div
class="ct-field-message ct-theme-light ct-field-message--warning ct-fieldset__message"
id=""
>
Expand Down
2 changes: 2 additions & 0 deletions components/01-atoms/input/__snapshots__/input.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ exports[`Input Component renders with optional attributes 1`] = `
<input
aria-describedby="input-id-message"
aria-invalid="true"
class="ct-input ct-theme-dark ct-input--is-invalid custom-class"
data-test="true"
disabled=""
Expand Down
2 changes: 2 additions & 0 deletions components/01-atoms/radio/__snapshots__/radio.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ exports[`Radio Component renders with optional attributes 1`] = `
<input
aria-describedby="radio-id-message"
aria-invalid="true"
checked=""
class="ct-radio ct-theme-dark ct-radio--is-invalid custom-class"
data-test="true"
Expand Down
2 changes: 2 additions & 0 deletions components/01-atoms/select/__snapshots__/select.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ exports[`Select Component renders with optional attributes 1`] = `
<select
aria-describedby="select-id-message"
aria-invalid="true"
class="ct-select ct-theme-dark ct-select--is-invalid custom-class"
data-test="true"
disabled=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`Textarea Component renders with optional attributes 1`] = `
<textarea
aria-invalid="true"
class="ct-textarea ct-theme-dark ct-textarea--is-invalid custom-class"
data-test="true"
disabled=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`Textfield Component renders with optional attributes 1`] = `
<input
aria-invalid="true"
class="ct-textfield ct-theme-dark ct-textfield--is-invalid custom-class"
data-test="true"
disabled=""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ exports[`Field Component required, disabled, and description 1`] = `
<input
aria-invalid="false"
class="ct-textfield ct-theme-light ct-field__control"
disabled=""
name="testname"
Expand Down Expand Up @@ -1018,6 +1019,8 @@ exports[`Field Component textarea with all attributes 1`] = `
<textarea
aria-describedby="testid-message"
aria-invalid="true"
class="ct-textarea ct-theme-light ct-textarea--is-invalid ct-field__control"
id="testid"
name="testname"
Expand Down

0 comments on commit ca14ca4

Please sign in to comment.