mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
Merge remote-tracking branch 'origin/main' into sync-6.3-09-30
This commit is contained in:
@ -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');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user