diff --git a/tests/library/browsercontext-pages.spec.ts b/tests/library/browsercontext-pages.spec.ts index ef27335c5e..79529f3487 100644 --- a/tests/library/browsercontext-pages.spec.ts +++ b/tests/library/browsercontext-pages.spec.ts @@ -138,3 +138,37 @@ it('should not leak listeners during navigation of 20 pages', async ({ contextFa process.off('warning', warningHandler); expect(warning).toBe(null); }); + +it('should keep selection in multiple pages', async ({ context, browserName, isLinux, headless }) => { + it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/27475' }); + it.fixme(browserName === 'webkit' && isLinux && !headless); + const page1 = await context.newPage(); + const page2 = await context.newPage(); + for (const page of [page1, page2]) { + await page.setContent('