We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f947828 commit b8a4fc9Copy full SHA for b8a4fc9
tests/user/type.test.ts
@@ -150,11 +150,11 @@ test(
150
await utils.injectHTML(`<textarea>1234</textarea>`);
151
const input = await screen.getByRole('textbox');
152
let startTime = Date.now();
153
- await user.type(input, '123');
154
- expect(Date.now() - startTime).toBeLessThan(100);
+ await user.type(input, '1234567890');
+ expect(Date.now() - startTime).toBeLessThan(200);
155
startTime = Date.now();
156
- await user.type(input, '123', { delay: 50 });
157
- expect(Date.now() - startTime).toBeGreaterThan(150);
+ await user.type(input, '1234567890', { delay: 100 });
+ expect(Date.now() - startTime).toBeGreaterThan(1000);
158
}),
159
);
160
0 commit comments