Skip to main content

externalSuiteFunction

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

    • externaltitle: string

      Group title.

    • externalcallback: () => 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