Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
feat: bump webkit version to include screencast fixes (#4200)
Yury Semikhatsky50a6ba7fdc43
diff --git a/browsers.json b/browsers.jsonindex 5af39f2e3b..ff85231b8d 100644--- a/browsers.json+++ b/browsers.json@@ -13,7 +13,7 @@},{"name": "webkit",- "revision": "1363",+ "revision": "1364","download": true}]diff --git a/test/screencast.spec.ts b/test/screencast.spec.tsindex 09cf1cde62..947fac4816 100644--- a/test/screencast.spec.ts+++ b/test/screencast.spec.ts@@ -40,7 +40,9 @@ export class VideoPlayer {constructor(fileName: string) {this.fileName = fileName;- this.output = spawnSync(ffmpeg, ['-i', this.fileName, `${this.fileName}-%03d.png`]).stderr.toString();+ // Force output frame rate to 25 fps as otherwise it would produce one image per timebase unit+ // which is 1 / (25 * 1000).+ this.output = spawnSync(ffmpeg, ['-i', this.fileName, '-r', '25', `${this.fileName}-%03d.png`]).stderr.toString();const lines = this.output.split('\n');let framesLine = lines.find(l => l.startsWith('frame='))!;@@ -123,7 +125,7 @@ function expectAll(pixels: Buffer, rgbaPredicate) {checkPixel(i);} catch (e) {// Log pixel values on failure.- e.message += `\n\nActual pixels=[${pixels}]`;+ e.message += `\n\nActual pixels=[${pixels.join(',')}]`;throw e;}}