playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Bug]: screen in video recorded in docker webkit is scaled up

Open archlichking opened this issue 5 years ago • 1 comments

Playwright version

1.12.3

Operating system

Linux

What browsers are you seeing the problem on?

WebKit

Other information

docker image: mcr.microsoft.com/playwright:v1.12.3-focal

What happened? / Describe the bug

The video doesn't scale correctly for webkit mobile simulation in docker container. In chromium it scales well.

webkit video screenshot

Screen Shot 2021-07-15 at 9 38 03 AM

chromium video screenshot

Screen Shot 2021-07-15 at 9 39 28 AM

Code snippet to reproduce your bug

// test

test.describe(' - Open Google', () => {
  test('@P0 Page should scale well', async ({ page }) => {
    await page.goto('https://www.google.com');
    await page.waitForTimeout(2000);
  });
});

// playwright config

const config: PlaywrightTestConfig = {
  use: {
    video: 'on',
    launchOptions: {
      headless: true,
      slowMo: 200,
    },
  },
  projects: [
    {
      name: 'safari@iphone 12pm',
      use: {
        browserName: 'webkit',
        ...devices['iPhone 12 Pro Max'],
      },
    },
    {
      name: 'chrome@iphone 12pm',
      use: {
        browserName: 'chromium',
        ...devices['iPhone 12 Pro Max'],
      },
    },
  ]
}

Relevant log output

No response

archlichking avatar Jul 15 '21 16:07 archlichking

I'm still seeing this issue, Webkit in a docker container

tking16 avatar Aug 23 '23 09:08 tking16