From 2e61a389d910e96f25fdc9a9d62b73781f5b04fb Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 9 May 2023 10:39:44 -0700 Subject: [PATCH] test: unskip loading in HTMLImageElement.prototype in WebKit (#22907) It was fixed by roll to r1841. Fixes https://github.com/microsoft/playwright/issues/22738 --- tests/library/capabilities.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.ts index 5c004ea3c1..aad9fb278a 100644 --- a/tests/library/capabilities.spec.ts +++ b/tests/library/capabilities.spec.ts @@ -234,9 +234,9 @@ it('make sure that XMLHttpRequest upload events are emitted correctly', async ({ expect(events).toEqual(['loadstart', 'progress', 'load', 'loadend']); }); -it('loading in HTMLImageElement.prototype', async ({ page, server, browserName }) => { +it('loading in HTMLImageElement.prototype', async ({ page, server, browserName, isMac }) => { it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22738' }); - it.fixme(browserName === 'webkit'); + it.skip(browserName === 'webkit' && isMac && parseInt(os.release(), 10) < 21, 'Does not work on macOS 11'); await page.goto(server.EMPTY_PAGE); const defined = await page.evaluate(() => 'loading' in HTMLImageElement.prototype); expect(defined).toBeTruthy();