Skip to content

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

testrunner: fix default environment name (#2870)

Andrey Lushnikov760283ea4e34
diff --git a/utils/testrunner/Test.js b/utils/testrunner/Test.js
index d9005a05fd..84bacd9b43 100644
--- a/utils/testrunner/Test.js
+++ b/utils/testrunner/Test.js
@@ -101,13 +101,14 @@ class Suite {
constructor(parentSuite, name, location) {
this._parentSuite = parentSuite;
this._name = name;
- this._fullName = (parentSuite ? parentSuite.fullName() + ' ' + name : name).trim();
+ const fullName = (parentSuite ? parentSuite.fullName() + ' ' + name : name).trim();
+ this._fullName = fullName;
this._location = location;
this._skipped = false;
this._expectation = TestExpectation.Ok;
this._defaultEnvironment = {
- name() { return this._fullName; },
+ name() { return fullName; },
};
this._environments = [this._defaultEnvironment];