test: unskip loading in HTMLImageElement.prototype in WebKit (#22907)

It was fixed by roll to r1841.

Fixes https://github.com/microsoft/playwright/issues/22738
This commit is contained in:
Yury Semikhatsky 2023-05-09 10:39:44 -07:00 committed by GitHub
parent 2ead6e530f
commit 2e61a389d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();