Skip to content

Commit 44150bd

Browse files
committed
make uui-input tests run correctly
1 parent 6d4dd9b commit 44150bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/uui-input/lib/uui-input.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ describe('UuiInput in Form', () => {
215215
});
216216

217217
describe('native validation', () => {
218-
element.setAttribute('type', 'email');
218+
beforeEach(async () => {
219+
element.setAttribute('type', 'email');
220+
await elementUpdated(element);
221+
});
219222

220223
it('sets element to invalid when value is empty', async () => {
221224
expect(element.checkValidity()).to.be.false;

0 commit comments

Comments
 (0)