From a68cc161dcfcb04ac57ee96aad10443c77dbe03d Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Mon, 1 May 2023 14:55:20 -0700 Subject: [PATCH] test: HTMLImageElement.prototype.loading is present (#22744) Failing test for https://github.com/microsoft/playwright/issues/22738 --- tests/library/capabilities.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.ts index 75b925a51a..c740a45584 100644 --- a/tests/library/capabilities.spec.ts +++ b/tests/library/capabilities.spec.ts @@ -233,3 +233,11 @@ 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.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22738' }); + it.fixme(browserName === 'webkit'); + await page.goto(server.EMPTY_PAGE); + const defined = await page.evaluate(() => 'loading' in HTMLImageElement.prototype); + expect(defined).toBeTruthy(); +});