mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
test(input): reduce masking test flakiness (#26057)
This commit is contained in:
@ -15,11 +15,11 @@ test.describe('input: masking', () => {
|
||||
await input.click();
|
||||
|
||||
// Playwright types this in one character at a time.
|
||||
await page.keyboard.type('S p a c e s');
|
||||
await page.keyboard.type('A B C', { delay: 100 });
|
||||
await ionInput.next();
|
||||
|
||||
// ionInput is called for each character.
|
||||
await expect(ionInput).toHaveReceivedEventTimes(11);
|
||||
await expect(input).toHaveJSProperty('value', 'Spaces');
|
||||
await expect(ionInput).toHaveReceivedEventTimes(5);
|
||||
await expect(input).toHaveJSProperty('value', 'ABC');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user