From 8b8385b6cb217030b5b55344d918d2351d02c827 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Tue, 11 Apr 2023 03:12:39 +0000 Subject: [PATCH] test: remove faulty test (#22321) Turns out we cannot guarantee order of events in Firefox: it might close the page before we get a response from renderer. Thus removing a faulty test. References https://github.com/microsoft/playwright/issues/20093 --- tests/page/page-click.spec.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tests/page/page-click.spec.ts b/tests/page/page-click.spec.ts index 2d4fe49e41..5488621016 100644 --- a/tests/page/page-click.spec.ts +++ b/tests/page/page-click.spec.ts @@ -38,22 +38,6 @@ it('should click button inside frameset', async ({ page, server }) => { expect(await frame.evaluate('result')).toBe('Clicked'); }); -it('should click a button that closes popup', async ({ page }) => { - it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/20093' }); - const [popup] = await Promise.all([ - page.waitForEvent('popup'), - page.evaluate(() => window.open('')), - ]); - await popup.setContent(``); - await popup.$eval('button', body => body.addEventListener('click', () => { - window.close(); - })); - await Promise.all([ - popup.locator('button').click(), // throws in Firefox, but not in Chromium or WebKit - popup.waitForEvent('close'), - ]); -}); - it('should issue clicks in parallel in page and popup', async ({ page, server }) => { await page.goto(server.PREFIX + '/counter.html'); const [popup] = await Promise.all([