mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: skip new tests that don't work in non-default mode (#22369)
The tests were added in
5cd9f83c7b
This commit is contained in:
parent
1962b5be3c
commit
9411790712
@ -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);
|
||||
});
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user