Skip to content

Commit

Permalink
test: fix failling sd-textarea test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovareiro29 committed Nov 14, 2024
1 parent ce37a9c commit c6482f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/components/textarea/textarea.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ describe('<sd-textarea>', () => {
await el.updateComplete;

expect(el.checkValidity()).to.be.true;
expect(el.shadowRoot!.querySelector('textarea')!.hasAttribute('aria-invalid')).to.be.false;
expect(el.shadowRoot!.querySelector('textarea')!.getAttribute('aria-invalid')).to.equal('false');
expect(el.hasAttribute('data-user-invalid')).to.be.false;
expect(el.hasAttribute('data-user-valid')).to.be.true;
});
Expand All @@ -207,7 +207,7 @@ describe('<sd-textarea>', () => {
el.blur();
await el.updateComplete;

expect(el.shadowRoot!.querySelector('textarea')!.hasAttribute('aria-invalid')).to.be.true;
expect(el.shadowRoot!.querySelector('textarea')!.getAttribute('aria-invalid')).to.equal('true');
expect(el.hasAttribute('data-user-invalid')).to.be.true;
expect(el.hasAttribute('data-user-valid')).to.be.false;
});
Expand Down

0 comments on commit c6482f7

Please sign in to comment.