Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(screencast): always send at least one frame in wpe (#3760)

Yury Semikhatsky52fd88b13db5
diff --git a/browsers.json b/browsers.json
index 37cb8ee741..88eb85c548 100644
--- a/browsers.json
+++ b/browsers.json
@@ -13,7 +13,7 @@
},
{
"name": "webkit",
- "revision": "1338",
+ "revision": "1339",
"download": true
}
]
diff --git a/test/screencast.spec.ts b/test/screencast.spec.ts
index 3216d0e55a..f97f5dde80 100644
--- a/test/screencast.spec.ts
+++ b/test/screencast.spec.ts
@@ -173,11 +173,6 @@ describe('screencast', suite => {
const videoFile = path.join(tmpDir, 'v.webm');
await page.evaluate(() => document.body.style.backgroundColor = 'red');
await toImpl(page)._delegate.startScreencast({outputFile: videoFile, width: 320, height: 240});
-
- // TODO: in WebKit figure out why video size is not reported correctly for
- // static pictures.
- if (options.HEADLESS && options.WEBKIT)
- await page.setViewportSize({width: 1270, height: 950});
await new Promise(r => setTimeout(r, 1000));
await toImpl(page)._delegate.stopScreencast();
expect(fs.existsSync(videoFile)).toBe(true);
@@ -202,10 +197,6 @@ describe('screencast', suite => {
const videoFile = path.join(tmpDir, 'v.webm');
await page.goto(server.PREFIX + '/background-color.html#rgb(0,0,0)');
await toImpl(page)._delegate.startScreencast({outputFile: videoFile, width: 320, height: 240});
- // TODO: in WebKit figure out why video size is not reported correctly for
- // static pictures.
- if (options.HEADLESS && options.WEBKIT)
- await page.setViewportSize({width: 1270, height: 950});
await new Promise(r => setTimeout(r, 1000));
await page.goto(server.CROSS_PROCESS_PREFIX + '/background-color.html#rgb(100,100,100)');
await new Promise(r => setTimeout(r, 1000));