Skip to main content
Version: 1.x

Variable: overlayTest

const overlayTest: TestType<PlaywrightTestArgs & PlaywrightTestOptions & OverlayFixtures, PlaywrightWorkerArgs & PlaywrightWorkerOptions & OverlayDeps>

Playwright test object extended with the overlays fixture.

Remarks​

Built-in rules are registered before the test body runs and removed after it, and any detections are attached to the report.

Capability​

ui5Overlays.register

Example​

overlayTest('checkout survives interruptions', async ({ page, overlays }) => {
await page.goto('/');
// overlays.detections lists anything that interrupted an action
});