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
chore: add more information to debug worker early exits (#14499)
Andrey Lushnikov582a18e4dca9
diff --git a/packages/playwright-test/src/dispatcher.ts b/packages/playwright-test/src/dispatcher.tsindex e036bcd3df..474c65fe4c 100644--- a/packages/playwright-test/src/dispatcher.ts+++ b/packages/playwright-test/src/dispatcher.ts@@ -503,7 +503,7 @@ class Worker extends EventEmitter {});this._ready = new Promise((resolve, reject) => {- this.process.once('exit', () => reject(new Error('worker exited before it became ready')));+ this.process.once('exit', (code, signal) => reject(new Error(`worker exited with code "${code}" and signal "${signal}" before it became ready`)));this.once('ready', () => resolve());});}