Skip to content

Commit

Permalink
test: fix failling specs for readonly components
Browse files Browse the repository at this point in the history
  • Loading branch information
ju-Skinner committed Jan 14, 2025
1 parent 5c69f0f commit f222bf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/core/src/components/pds-input/test/pds-input.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('pds-input', () => {
`);
});

it('renders readonly input', async () => {
it('renders required input', async () => {
const { root } = await newSpecPage({
components: [PdsInput],
html: `<pds-input required="true" component-id="field-1" value="Frank Dux"></pds-input>`
Expand Down Expand Up @@ -102,7 +102,7 @@ describe('pds-input', () => {
});

expect(root).toEqualHtml(`
<pds-input component-id="field-1" readonly="true" value="Frank Dux">
<pds-input aria-readonly="true" component-id="field-1" readonly="true" value="Frank Dux">
<mock:shadow-root>
<div class="pds-input">
<label htmlFor="field-1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe('pds-textarea', () => {
});

expect(root).toEqualHtml(`
<pds-textarea readonly="true">
<pds-textarea aria-readonly="true" readonly="true">
<mock:shadow-root>
<div class="pds-textarea">
<textarea class="pds-textarea__field" readonly=""></textarea>
Expand Down

0 comments on commit f222bf8

Please sign in to comment.