Skip to content

Commit

Permalink
test: update expectations for WebKit Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Dec 22, 2023
1 parent 32ecb07 commit 7cb615c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/page/page-fill.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ for (const [type, value] of Object.entries({
'range': '42',
'week': '2020-W50'
})) {
it(`input event.composed should be true and cross shadow dom boundary - ${type}`, async ({ page, server, browserName }) => {
it(`input event.composed should be true and cross shadow dom boundary - ${type}`, async ({ page, server, browserName, isWindows }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/28726' });
await page.goto(server.EMPTY_PAGE);
await page.setContent(`<body><script>
Expand Down Expand Up @@ -126,8 +126,10 @@ for (const [type, value] of Object.entries({
});
await page.locator('input').fill(value);

[1,2,3].includes(1);
expect(await page.evaluate(() => window['firedEvents'])).toEqual(
(browserName !== 'chromium' && (type === 'month' || type === 'week')) ?
((browserName !== 'chromium' && ['month', 'week'].includes(type)) ||
(browserName === 'webkit' && isWindows && ['color', 'date', 'time', 'datetime-local'].includes(type))) ?
['input:true'] :
['input:true', 'change:false']
);
Expand Down

0 comments on commit 7cb615c

Please sign in to comment.