Skip to content

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

fix(testrunner): attribute unhandle promise reject to a single worker (#1491)

Dmitry Gozman63906454a787
diff --git a/utils/testrunner/TestRunner.js b/utils/testrunner/TestRunner.js
index 8730a623b0..1e3515d4a5 100644
--- a/utils/testrunner/TestRunner.js
+++ b/utils/testrunner/TestRunner.js
@@ -411,7 +411,7 @@ class TestPass {
if (error) {
if (error.stack)
await this._runner._sourceMapSupport.rewriteStackTraceWithSourceMaps(error);
- this._result.addError(message, error);
+ this._result.addError(message, error, this._workers.length === 1 ? this._workers[0] : null);
}
}