@serenity-is/corelib / alert
Variable: alert()
constalert: (message,options?) =>Partial<Dialog> =alertDialog
Defined in: src/compat/dialogs-compat.ts:8
Legacy alert alias.
Displays a modal alert dialog with a single OK button.
Parameters
message
Text or renderable content shown in the dialog body.
options?
Additional MessageDialogOptions.
Returns
Partial<Dialog>
A Dialog handle (partial when falling back to the native alert()), whose result is "ok".
Remarks
Falls back to the native alert() when neither Bootstrap modal nor jQuery UI dialog is available.
Example
alertDialog("An error occurred!");
Deprecated
Use alertDialog from "@serenity-is/corelib" instead. This re-export is retained for compat with code that imports alert / Serenity.alert.