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.
@@ -750,8 +750,8 @@ export interface TestResult {
750
750
  }
751
751
 
752
752
  /**
753
- * Controls which tests will run and their expected status. A [TestRun](https://playwright.dev/docs/api/class-testrun)
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.