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
package/types/testReporter.d.ts
CHANGED
|
@@ -750,8 +750,8 @@ export interface TestResult {
|
|
|
750
750
|
}
|
|
751
751
|
|
|
752
752
|
/**
|
|
753
|
-
* Controls which tests will run and their expected status. A
|
|
754
|
-
* is available during
|
|
753
|
+
* Controls which tests will run and their expected status, and provides information about suite execution modes. A
|
|
754
|
+
* [TestRun](https://playwright.dev/docs/api/class-testrun) is available during
|
|
755
755
|
* [reporter.preprocess(params)](https://playwright.dev/docs/api/class-reporter#reporter-preprocess). Setup and
|
|
756
756
|
* teardown projects cannot be changed.
|
|
757
757
|
*/
|
|
@@ -779,6 +779,26 @@ export interface TestRun {
|
|
|
779
779
|
*/
|
|
780
780
|
fixme(test: TestCase|Suite, reason?: string): void;
|
|
781
781
|
|
|
782
|
+
/**
|
|
783
|
+
* Returns the execution mode configured for a suite with
|
|
784
|
+
* [test.describe.configure([options])](https://playwright.dev/docs/api/class-test#test-describe-configure),
|
|
785
|
+
* [test.describe.serial([title, details, callback])](https://playwright.dev/docs/api/class-test#test-describe-serial)
|
|
786
|
+
* or
|
|
787
|
+
* [test.describe.parallel([title, details, callback])](https://playwright.dev/docs/api/class-test#test-describe-parallel).
|
|
788
|
+
* If the suite does not configure a mode, it inherits its parent's mode. Project suites use `"parallel"` when
|
|
789
|
+
* [testProject.fullyParallel](https://playwright.dev/docs/api/class-testproject#test-project-fully-parallel) is
|
|
790
|
+
* enabled, and `"default"` otherwise. The root suite uses `"default"`.
|
|
791
|
+
*
|
|
792
|
+
* An explicit `"default"` suite does not inherit `"parallel"` from its parent: its tests run in order in the same
|
|
793
|
+
* worker. The mode alone does not describe complete test groups, which also depend on worker fixtures and hooks.
|
|
794
|
+
*
|
|
795
|
+
* This method can only be called during
|
|
796
|
+
* [reporter.preprocess(params)](https://playwright.dev/docs/api/class-reporter#reporter-preprocess), and can also
|
|
797
|
+
* inspect setup and teardown projects.
|
|
798
|
+
* @param suite Suite to inspect.
|
|
799
|
+
*/
|
|
800
|
+
mode(suite: Suite): "serial"|"parallel"|"default";
|
|
801
|
+
|
|
782
802
|
/**
|
|
783
803
|
* Skips a test or every test in a suite. The test bodies are not executed and the tests are reported as skipped.
|
|
784
804
|
* @param test Test or suite to skip.
|