Skip to content

@serenity-is/corelib / notifySuccess

Function: notifySuccess()

notifySuccess(message, title?, options?): void

Defined in: src/base/notify.ts:100

Shows a success toast notification.

Parameters

message

RenderableContent

Main content of the toast.

title?

RenderableContent

Optional title displayed above the message.

options?

ToastrOptions

Per-call toastr overrides merged over defaultNotifyOptions.

Returns

void

Example

notifySuccess("Record created successfully.", "Done");