test: skip new tests that don't work in non-default mode (#22369)

The tests were added in
5cd9f83c7b
This commit is contained in:
Andrey Lushnikov 2023-04-12 22:15:34 +00:00 committed by GitHub
parent 1962b5be3c
commit 9411790712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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);
});

View File

@ -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);