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
fix(webkit): do not crash in headless tests on ubuntu 22.04 (#37037)
Yury Semikhatsky25c43340b4d5
diff --git a/packages/playwright-core/src/server/webkit/wkPage.ts b/packages/playwright-core/src/server/webkit/wkPage.tsindex 0452a22552..5d96136bfd 100644--- a/packages/playwright-core/src/server/webkit/wkPage.ts+++ b/packages/playwright-core/src/server/webkit/wkPage.ts@@ -715,6 +715,11 @@ export class WKPage implements PageDelegate {promises.push(this._pageProxySession.send('Emulation.setOrientationOverride', { angle }));}await Promise.all(promises);++ // WPE WebKit is failing in mesa due to a race condition if we start interacting+ // with the page too quickly.+ if (!this._browserContext._browser?.options.headful && hostPlatform === 'ubuntu22.04-x64')+ await new Promise(r => setTimeout(r, 500));}async updateRequestInterception(): Promise<void> {