test(input): reduce masking test flakiness (#26057)

This commit is contained in:
Liam DeBeasi
2022-09-30 12:05:14 -05:00
committed by GitHub
parent f404d512a1
commit d17d6c20b4

View File

@ -15,11 +15,11 @@ test.describe('input: masking', () => {
await input.click(); await input.click();
// Playwright types this in one character at a time. // 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(); await ionInput.next();
// ionInput is called for each character. // ionInput is called for each character.
await expect(ionInput).toHaveReceivedEventTimes(11); await expect(ionInput).toHaveReceivedEventTimes(5);
await expect(input).toHaveJSProperty('value', 'Spaces'); await expect(input).toHaveJSProperty('value', 'ABC');
}); });
}); });