Interface: NativeDialogRule
A policy for answering one kind of native dialog.
Example
const rule: NativeDialogRule = {
name: 'discard-unsaved',
types: ['beforeunload'],
action: 'accept',
};
Properties
action
readonlyaction:NativeDialogAction
Whether to accept or dismiss.
name
readonlyname:string
Stable identifier, used in logs and records.
promptText?
readonlyoptionalpromptText?:string
Text supplied when accepting a prompt. Ignored for other types.
times?
readonlyoptionaltimes?:number
Maximum times this rule may fire per test. Defaults to 5.
types
readonlytypes: readonlyNativeDialogType[]
Dialog types this rule answers. Must not be empty.