@playwright/test 1.35.0-alpha-jun-5-2023 → 1.35.0-alpha-jun-7-2023
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +13 -1
- package/ThirdPartyNotices.txt +1 -61
- package/lib/cli.js +5 -2
- package/lib/common/process.js +1 -1
- package/lib/index.js +2 -2
- package/lib/matchers/toMatchSnapshot.js +6 -0
- package/lib/reporters/github.js +1 -1
- package/lib/reporters/html.js +4 -11
- package/lib/reporters/internalReporter.js +6 -1
- package/lib/reporters/merge.js +6 -2
- package/lib/runner/dispatcher.js +5 -5
- package/lib/runner/runner.js +2 -2
- package/lib/runner/uiMode.js +55 -68
- package/lib/util.js +19 -2
- package/lib/utilsBundle.js +1 -3
- package/lib/utilsBundleImpl.js +36 -36
- package/lib/worker/testInfo.js +1 -1
- package/lib/worker/workerMain.js +3 -3
- package/package.json +2 -2
- package/types/test.d.ts +119 -89
- package/types/testReporter.d.ts +16 -14
package/lib/worker/testInfo.js
CHANGED
|
@@ -175,7 +175,7 @@ class TestInfoImpl {
|
|
|
175
175
|
}
|
|
176
176
|
_addStep(data, parentStep) {
|
|
177
177
|
var _parentStep;
|
|
178
|
-
const stepId = `${data.category}@${
|
|
178
|
+
const stepId = `${data.category}@${++this._lastStepId}`;
|
|
179
179
|
if (!parentStep) parentStep = _utils.zones.zoneData('stepZone', (0, _utils.captureRawStack)()) || undefined;
|
|
180
180
|
|
|
181
181
|
// For out-of-stack calls, locate the enclosing step.
|
package/lib/worker/workerMain.js
CHANGED
|
@@ -169,7 +169,7 @@ class WorkerMain extends _process.ProcessRunner {
|
|
|
169
169
|
// No current test - fatal error.
|
|
170
170
|
if (!this._fatalErrors.length) this._fatalErrors.push((0, _util2.serializeError)(error));
|
|
171
171
|
}
|
|
172
|
-
this._stop();
|
|
172
|
+
void this._stop();
|
|
173
173
|
}
|
|
174
174
|
async _loadIfNeeded() {
|
|
175
175
|
if (this._config) return;
|
|
@@ -203,14 +203,14 @@ class WorkerMain extends _process.ProcessRunner {
|
|
|
203
203
|
}
|
|
204
204
|
} else {
|
|
205
205
|
fatalUnknownTestIds = runPayload.entries.map(e => e.testId);
|
|
206
|
-
this._stop();
|
|
206
|
+
void this._stop();
|
|
207
207
|
}
|
|
208
208
|
} catch (e) {
|
|
209
209
|
// In theory, we should run above code without any errors.
|
|
210
210
|
// However, in the case we screwed up, or loadTestFile failed in the worker
|
|
211
211
|
// but not in the runner, let's do a fatal error.
|
|
212
212
|
this._fatalErrors.push((0, _util2.serializeError)(e));
|
|
213
|
-
this._stop();
|
|
213
|
+
void this._stop();
|
|
214
214
|
} finally {
|
|
215
215
|
const donePayload = {
|
|
216
216
|
fatalErrors: this._fatalErrors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playwright/test",
|
|
3
|
-
"version": "1.35.0-alpha-jun-
|
|
3
|
+
"version": "1.35.0-alpha-jun-7-2023",
|
|
4
4
|
"description": "A high-level API to automate web browsers",
|
|
5
5
|
"repository": "github:Microsoft/playwright",
|
|
6
6
|
"homepage": "https://playwright.dev",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"license": "Apache-2.0",
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@types/node": "*",
|
|
44
|
-
"playwright-core": "1.35.0-alpha-jun-
|
|
44
|
+
"playwright-core": "1.35.0-alpha-jun-7-2023"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
47
|
"fsevents": "2.3.2"
|