RUM JavaScript API - 1.345.1
    Preparing search index...

    Variable testConst

    test: (
        title: string,
        body: (
            fixtures: DynatraceTestingFixture & Record<string, unknown>,
        ) => Promise<void>,
    ) => void

    Playwright test function extended with Dynatrace RUM testing fixtures.

    Provides the dynatraceTesting and dynatraceConfig fixtures for capturing and asserting on RUM events during end-to-end tests.

    import { test } from "@dynatrace/rum-javascript-sdk-playwright";

    test("my test", async ({ dynatraceTesting, page }) => {
    await page.goto("https://example.com");
    await dynatraceTesting.expectToHaveSentEvent({ "user_action.type": "load" });
    });

    Type Declaration

    DynatraceTestingFixture for available test-scoped fixtures