Const
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" });}); Copy
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" });});
DynatraceTestingFixture for available test-scoped fixtures
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.