Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: skip new tests that don't work in non-default mode (#22369)
Andrey Lushnikov9411790712bf
diff --git a/tests/library/browsercontext-basic.spec.ts b/tests/library/browsercontext-basic.spec.tsindex 07f026123e..6747a042b8 100644--- a/tests/library/browsercontext-basic.spec.ts+++ b/tests/library/browsercontext-basic.spec.ts@@ -289,7 +289,8 @@ it('should emulate media in cross-process iframe', async ({ browser, server }) =await page.close();});-it('default user agent', async ({ launchPersistent, browser, page }) => {+it('default user agent', async ({ launchPersistent, browser, page, mode }) => {+ it.skip(mode !== 'default');const { userAgent } = await (browser as any)._channel.defaultUserAgentForTest();expect(await page.evaluate(() => navigator.userAgent)).toBe(userAgent);});diff --git a/tests/library/defaultbrowsercontext-2.spec.ts b/tests/library/defaultbrowsercontext-2.spec.tsindex 99d46d1f43..3552f94e97 100644--- a/tests/library/defaultbrowsercontext-2.spec.ts+++ b/tests/library/defaultbrowsercontext-2.spec.ts@@ -233,7 +233,8 @@ it('should support har option', async ({ launchPersistent, asset }) => {await expect(page.locator('body')).toHaveCSS('background-color', 'rgb(255, 0, 0)');});-it('user agent is up to date', async ({ launchPersistent, browser }) => {+it('user agent is up to date', async ({ launchPersistent, browser, mode }) => {+ it.skip(mode !== 'default');const { userAgent } = await (browser as any)._channel.defaultUserAgentForTest();const { context, page } = await launchPersistent();expect(await page.evaluate(() => navigator.userAgent)).toBe(userAgent);