patchwright 1.64.1 → 1.65.1
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/README.md +116 -145
- package/helpers.mjs +387 -0
- package/lib/cli/testActions.js +0 -1
- package/lib/common/index.js +142 -65
- package/lib/common/index.js.txt +7 -7
- package/lib/matchers/expect.js +56 -30
- package/lib/matchers/expect.js.LICENSE +3 -3
- package/lib/matchers/expect.js.txt +4 -4
- package/lib/mcp/test/testContext.js +2 -8
- package/lib/runner/index.js +500 -401
- package/lib/runner/index.js.txt +24 -23
- package/lib/transform/babelBundle.js +81 -57
- package/lib/transform/babelBundle.js.txt +2 -2
- package/lib/transform/esmLoader.js +361 -163
- package/lib/transform/esmLoader.js.LICENSE +3 -3
- package/lib/transform/esmLoader.js.txt +9 -8
- package/lib/worker/workerProcessEntry.js +6 -14
- package/lib/worker/workerProcessEntry.js.txt +2 -2
- package/package.json +6 -5
- package/types/test.d.ts +365 -41
- package/types/testReporter.d.ts +22 -2
|
@@ -5,7 +5,7 @@ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
|
|
|
5
5
|
The following npm packages are inlined into this bundle.
|
|
6
6
|
|
|
7
7
|
- balanced-match@4.0.4 (https://github.com/juliangruber/balanced-match)
|
|
8
|
-
- brace-expansion@5.0.
|
|
8
|
+
- brace-expansion@5.0.12 (https://github.com/juliangruber/brace-expansion)
|
|
9
9
|
- buffer-from@1.1.2 (https://github.com/LinusU/buffer-from)
|
|
10
10
|
- debug@4.4.3 (https://github.com/debug-js/debug)
|
|
11
11
|
- has-flag@4.0.0 (https://github.com/sindresorhus/has-flag)
|
|
@@ -45,7 +45,7 @@ SOFTWARE.
|
|
|
45
45
|
=========================================
|
|
46
46
|
END OF balanced-match@4.0.4 NOTICES AND INFORMATION
|
|
47
47
|
|
|
48
|
-
%% brace-expansion@5.0.
|
|
48
|
+
%% brace-expansion@5.0.12 NOTICES AND INFORMATION BEGIN HERE
|
|
49
49
|
=========================================
|
|
50
50
|
MIT License
|
|
51
51
|
|
|
@@ -71,7 +71,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
71
71
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
72
72
|
SOFTWARE.
|
|
73
73
|
=========================================
|
|
74
|
-
END OF brace-expansion@5.0.
|
|
74
|
+
END OF brace-expansion@5.0.12 NOTICES AND INFORMATION
|
|
75
75
|
|
|
76
76
|
%% buffer-from@1.1.2 NOTICES AND INFORMATION BEGIN HERE
|
|
77
77
|
=========================================
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# packages/playwright/lib/transform/esmLoader.js
|
|
2
|
-
# total:
|
|
2
|
+
# total: 289.9 KB
|
|
3
3
|
|
|
4
|
-
## Inlined (
|
|
4
|
+
## Inlined (52)
|
|
5
5
|
1.3 KB node_modules/balanced-match/dist/esm/index.js
|
|
6
|
-
|
|
6
|
+
6.7 KB node_modules/brace-expansion/dist/esm/index.js
|
|
7
7
|
1.8 KB node_modules/buffer-from/index.js
|
|
8
8
|
4.6 KB node_modules/debug/src/browser.js
|
|
9
9
|
5.8 KB node_modules/debug/src/common.js
|
|
@@ -39,15 +39,16 @@
|
|
|
39
39
|
8.6 KB node_modules/source-map/lib/util.js
|
|
40
40
|
0.3 KB node_modules/source-map/source-map.js
|
|
41
41
|
3.1 KB node_modules/supports-color/index.js
|
|
42
|
+
1.0 KB packages/isomorphic/multimap.ts
|
|
42
43
|
0.1 KB packages/isomorphic/rtti.ts
|
|
43
44
|
0.2 KB packages/isomorphic/stringUtils.ts
|
|
44
|
-
|
|
45
|
-
3.
|
|
46
|
-
1.
|
|
45
|
+
6.8 KB packages/playwright/src/transform/compilationCache.ts
|
|
46
|
+
3.3 KB packages/playwright/src/transform/esmLoader.ts
|
|
47
|
+
1.8 KB packages/playwright/src/transform/esmLoaderSync.ts
|
|
47
48
|
1.1 KB packages/playwright/src/transform/pirates.ts
|
|
48
49
|
1.1 KB packages/playwright/src/transform/portTransport.ts
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
13.2 KB packages/playwright/src/transform/transform.ts
|
|
51
|
+
4.2 KB packages/playwright/src/transform/tsconfig-loader.ts
|
|
51
52
|
4.7 KB packages/playwright/src/util.ts
|
|
52
53
|
0.2 KB packages/utils/crypto.ts
|
|
53
54
|
0.1 KB packages/utils/debug.ts
|
|
@@ -848,7 +848,8 @@ var emtpyTestInfoCallbacks = {
|
|
|
848
848
|
},
|
|
849
849
|
onAttach: () => {
|
|
850
850
|
},
|
|
851
|
-
onTestPaused: () =>
|
|
851
|
+
onTestPaused: () => {
|
|
852
|
+
}
|
|
852
853
|
};
|
|
853
854
|
var nextStepId = createCallIdGenerator();
|
|
854
855
|
var TestInfoImpl = class {
|
|
@@ -959,7 +960,7 @@ var TestInfoImpl = class {
|
|
|
959
960
|
}
|
|
960
961
|
if (modifierArgs.length >= 1 && !modifierArgs[0])
|
|
961
962
|
return;
|
|
962
|
-
const description = modifierArgs[1];
|
|
963
|
+
const description = modifierArgs.length === 1 && typeof modifierArgs[0] === "string" ? modifierArgs[0] : modifierArgs[1];
|
|
963
964
|
this.annotations.push({ type, description, location });
|
|
964
965
|
if (type === "slow") {
|
|
965
966
|
this._timeoutManager.slow();
|
|
@@ -1162,10 +1163,8 @@ ${stringifyStackFrames2(step.boxedStack).join("\n")}`;
|
|
|
1162
1163
|
async _didFinishTestFunction() {
|
|
1163
1164
|
const shouldPause = this._workerParams.pauseAtEnd && !this._isFailure() || this._workerParams.pauseOnError && this._isFailure();
|
|
1164
1165
|
if (shouldPause) {
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
this._interruptedPromise
|
|
1168
|
-
]);
|
|
1166
|
+
this._callbacks.onTestPaused({ testId: this.testId, errors: this._isFailure() ? this.errors.map(import_common2.ipc.toTestInfoErrorPayload) : [] });
|
|
1167
|
+
await this._interruptedPromise;
|
|
1169
1168
|
}
|
|
1170
1169
|
for (const cb of this._onDidFinishTestFunctionCallbacks)
|
|
1171
1170
|
await cb();
|
|
@@ -1550,19 +1549,12 @@ var WorkerMain = class extends import_common3.ProcessRunner {
|
|
|
1550
1549
|
return { response: {}, error: import_common3.ipc.toTestInfoErrorPayload(testInfoError(error)) };
|
|
1551
1550
|
}
|
|
1552
1551
|
}
|
|
1553
|
-
resume(payload) {
|
|
1554
|
-
this._resumePromise?.resolve(payload);
|
|
1555
|
-
}
|
|
1556
1552
|
async _runTest(test, retry, nextTest) {
|
|
1557
1553
|
const testInfo = new TestInfoImpl(this._config, this._project, this._params, test, retry, {
|
|
1558
1554
|
onStepBegin: (payload) => this.dispatchEvent("stepBegin", payload),
|
|
1559
1555
|
onStepEnd: (payload) => this.dispatchEvent("stepEnd", payload),
|
|
1560
1556
|
onAttach: (payload) => this.dispatchEvent("attach", payload),
|
|
1561
|
-
onTestPaused: (payload) =>
|
|
1562
|
-
this._resumePromise = new ManualPromise5();
|
|
1563
|
-
this.dispatchEvent("testPaused", payload);
|
|
1564
|
-
return this._resumePromise;
|
|
1565
|
-
}
|
|
1557
|
+
onTestPaused: (payload) => this.dispatchEvent("testPaused", payload)
|
|
1566
1558
|
});
|
|
1567
1559
|
const processAnnotation = (annotation) => {
|
|
1568
1560
|
testInfo.annotations.push(annotation);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# packages/playwright/lib/worker/workerProcessEntry.js
|
|
2
|
-
# total: 74.
|
|
2
|
+
# total: 74.0 KB
|
|
3
3
|
|
|
4
4
|
## Inlined (8)
|
|
5
5
|
3.7 KB packages/playwright/src/util.ts
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
11.9 KB packages/playwright/src/worker/testTracing.ts
|
|
9
9
|
5.4 KB packages/playwright/src/worker/timeoutManager.ts
|
|
10
10
|
0.3 KB packages/playwright/src/worker/util.ts
|
|
11
|
-
21.
|
|
11
|
+
21.1 KB packages/playwright/src/worker/workerMain.ts
|
|
12
12
|
0.1 KB packages/playwright/src/worker/workerProcessEntry.ts
|
|
13
13
|
|
|
14
14
|
## External (5)
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "patchwright",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.65.1",
|
|
4
4
|
"description": "A high-level API to automate web browsers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/codeiva11/
|
|
7
|
+
"url": "git+https://github.com/codeiva11/patchwright.git"
|
|
8
8
|
},
|
|
9
|
-
"homepage": "https://github.com/codeiva11/
|
|
9
|
+
"homepage": "https://github.com/codeiva11/patchwright",
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=20"
|
|
12
12
|
},
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"import": "./test.mjs",
|
|
36
36
|
"require": "./test.js",
|
|
37
37
|
"default": "./test.js"
|
|
38
|
-
}
|
|
38
|
+
},
|
|
39
|
+
"./helpers": "./helpers.mjs"
|
|
39
40
|
},
|
|
40
41
|
"bin": {
|
|
41
42
|
"patchwright": "cli.js"
|
|
@@ -45,6 +46,6 @@
|
|
|
45
46
|
},
|
|
46
47
|
"license": "Apache-2.0",
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"patchwright-core": "1.
|
|
49
|
+
"patchwright-core": "1.65.1"
|
|
49
50
|
}
|
|
50
51
|
}
|