English · Node.js
Appearance
English · Node.js
Appearance
Suite is a group of tests. All tests in Playwright Test form the following hierarchy:
test.describe() group Reporter is given a root suite in the reporter.onBegin() method.
Returns the list of all test cases in this suite and its descendants, as opposite to suite.tests.
Returns
Array<TestCase>Test cases and suites defined directly in this suite. The elements are returned in their declaration order. You can differentiate between various entry types by using testCase.type and suite.type.
Returns
Array<TestCase | Suite>Configuration of the project this suite belongs to, or [void] for the root suite.
Returns
FullProject | undefinedReturns a list of titles from the root down to this suite.
Returns
Array<string>Location in the source where the suite is defined. Missing for root and project suites.
Type
LocationParent suite, missing for the root suite.
Type
SuiteChild suites. See Suite for the hierarchy of suites.
Type
Array<Suite>Test cases in the suite. Note that only test cases defined directly in this suite are in the list. Any test cases defined in nested test.describe() groups are listed in the child suite.suites.
Type
Array<TestCase>Suite title.
test.describe() for a group suite.Type
stringReturns the type of the suite. The Suites form the following hierarchy: root -> project -> file -> describe -> ...describe -> test.
Type
"root" | "project" | "file" | "describe"