playwright
playwright copied to clipboard
[Bug]: screen in video recorded in docker webkit is scaled up
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
chromium video screenshot
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
I'm still seeing this issue, Webkit in a docker container