Skip to main content

SuiteFunction

Callable

  • SuiteFunction(title: string, callback: () => void): void
  • SuiteFunction(callback: () => void): void
  • SuiteFunction(title: string, details: TestDetails, callback: () => void): void

  • Declares a group of tests.

    Usage

    test.describe('two tests', () => {
    test('one', async ({ page }) => {
    // ...
    });

    test('two', async ({ page }) => {
    // ...
    });
    });

    Parameters

    • title: string

      Group title.

    • callback: () => void

      A callback that is run immediately when calling test.describe(title, callback). Any tests added in this callback will belong to the group.

    Returns void