Skip to main content
Version: 1.15

Suite

Suite is a group of tests. All tests in Playwright Test form the following hierarchy:

Reporter is given a root suite in the reporter.onBegin(config, suite) method.

suite.allTests()#

Returns the list of all test cases in this suite and its descendants, as opposite to suite.tests.

suite.titlePath()#

Returns a list of titles from the root down to this suite.

suite.location#

Location in the source where the suite is defined. Missing for root and project suites.

suite.suites#

Child suites. See Suite for the hierarchy of suites.

suite.tests#

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(title, callback) groups are listed in the child suite.suites.

suite.title#

Suite title.