@playwright/test 1.35.0 → 1.35.1-beta-1686781654000
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/lib/worker/testInfo.js +4 -2
- package/package.json +2 -2
- package/types/test.d.ts +0 -1
package/lib/worker/testInfo.js
CHANGED
|
@@ -184,7 +184,8 @@ class TestInfoImpl {
|
|
|
184
184
|
const visit = step => {
|
|
185
185
|
// Never nest into under another lax element, it could be a series
|
|
186
186
|
// of no-reply actions, ala page.continue().
|
|
187
|
-
|
|
187
|
+
const canNest = step.category === data.category || step.category === 'expect' && data.category === 'attach';
|
|
188
|
+
if (!step.endWallTime && canNest && !step.laxParent) parentStep = step;
|
|
188
189
|
step.steps.forEach(visit);
|
|
189
190
|
};
|
|
190
191
|
this._steps.forEach(visit);
|
|
@@ -297,7 +298,8 @@ class TestInfoImpl {
|
|
|
297
298
|
const step = this._addStep({
|
|
298
299
|
title: `attach "${name}"`,
|
|
299
300
|
category: 'attach',
|
|
300
|
-
wallTime: Date.now()
|
|
301
|
+
wallTime: Date.now(),
|
|
302
|
+
laxParent: true
|
|
301
303
|
});
|
|
302
304
|
this._attachWithoutStep(attachment);
|
|
303
305
|
step.complete({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playwright/test",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.1-beta-1686781654000",
|
|
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.
|
|
44
|
+
"playwright-core": "1.35.1-beta-1686781654000"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
47
|
"fsevents": "2.3.2"
|
package/types/test.d.ts
CHANGED