review feedback
This commit is contained in:
parent
6df2ec0168
commit
762dc780cc
|
|
@ -112,7 +112,7 @@ export class BidiChromium extends BrowserType {
|
|||
if (options.devtools)
|
||||
chromeArguments.push('--auto-open-devtools-for-tabs');
|
||||
if (options.headless) {
|
||||
chromeArguments.push('--headless=new');
|
||||
chromeArguments.push('--headless');
|
||||
|
||||
chromeArguments.push(
|
||||
'--hide-scrollbars',
|
||||
|
|
|
|||
|
|
@ -309,7 +309,7 @@ export class Chromium extends BrowserType {
|
|||
if (options.devtools)
|
||||
chromeArguments.push('--auto-open-devtools-for-tabs');
|
||||
if (options.headless) {
|
||||
chromeArguments.push('--headless=new');
|
||||
chromeArguments.push('--headless');
|
||||
|
||||
chromeArguments.push(
|
||||
'--hide-scrollbars',
|
||||
|
|
|
|||
|
|
@ -637,7 +637,7 @@ it('should be able to download a inline PDF file via response interception', asy
|
|||
});
|
||||
|
||||
it('should be able to download a inline PDF file via navigation', async ({ browser, server, asset, browserName, channel }) => {
|
||||
it.skip(browserName === 'chromium' && channel !== 'chromium-headless-shell');
|
||||
it.skip(browserName === 'chromium' && channel !== 'chromium-headless-shell', 'We expect PDF Viewer to open up in Chromium');
|
||||
const page = await browser.newPage();
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
await page.setContent(`
|
||||
|
|
|
|||
|
|
@ -104,7 +104,8 @@ it('should change document.activeElement', async ({ page, server }) => {
|
|||
it('should not affect screenshots', async ({ page, server, browserName, headless, isWindows, channel }) => {
|
||||
it.skip(browserName === 'webkit' && isWindows && !headless, 'WebKit/Windows/headed has a larger minimal viewport. See https://github.com/microsoft/playwright/issues/22616');
|
||||
it.skip(browserName === 'firefox' && !headless, 'Firefox headed produces a different image');
|
||||
it.fixme(browserName === 'chromium' && channel !== 'chromium-headless-shell', 'https://github.com/microsoft/playwright/issues/33330');
|
||||
// TODO: We want to see test results
|
||||
// it.fixme(browserName === 'chromium' && channel !== 'chromium-headless-shell', 'https://github.com/microsoft/playwright/issues/33330');
|
||||
|
||||
const page2 = await page.context().newPage();
|
||||
await Promise.all([
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ it('should support clipboard read', async ({ page, context, server, browserName,
|
|||
if (browserName !== 'webkit')
|
||||
expect(await getPermission(page, 'clipboard-read')).toBe('prompt');
|
||||
|
||||
if (browserName === 'chromium' && channel !== 'chromium-headless-shell') {
|
||||
if (browserName === 'chromium' && channel === 'chromium-headless-shell') {
|
||||
// Chromium shows a dialog and does not resolve the promise.
|
||||
const error = await page.evaluate(() => navigator.clipboard.readText()).catch(e => e);
|
||||
expect(error.toString()).toContain('denied');
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@ browserTest.describe('page screenshot', () => {
|
|||
browserTest.skip(({ browserName, headless }) => browserName === 'firefox' && !headless, 'Firefox headed produces a different image.');
|
||||
|
||||
browserTest('should run in parallel in multiple pages', async ({ server, contextFactory, browserName, channel }) => {
|
||||
browserTest.fixme(browserName === 'chromium' && channel !== 'chromium-headless-shell', 'https://github.com/microsoft/playwright/issues/33330');
|
||||
// TODO: We want to see test results
|
||||
// browserTest.fixme(browserName === 'chromium' && channel !== 'chromium-headless-shell', 'https://github.com/microsoft/playwright/issues/33330');
|
||||
const context = await contextFactory();
|
||||
const N = 5;
|
||||
const pages = await Promise.all(Array(N).fill(0).map(async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue