Skip to main content
Version: 1.x

Variable: nativeDialogTest

const nativeDialogTest: TestType<PlaywrightTestArgs & PlaywrightTestOptions & NativeDialogFixtures, PlaywrightWorkerArgs & PlaywrightWorkerOptions>

Test object providing the nativeDialogs fixture.

Remarks​

Not auto: true. An auto fixture would attach dialogclosed to every test whether or not it cares, and while that is behaviour-neutral it is still work and noise a test never asked for. Depend on nativeDialogs to get it.

Example​

import { nativeDialogTest } from 'playwright-praman';

nativeDialogTest('sees the confirm', async ({ nativeDialogs }) => {
// ...
});