The app shows a message: one of its toasts (the region "Notifications …" of Sonner, the official template's), or anything with the role status or alert, containing the text. The step waits for it to show.
Examples
Then the app should show the message "Item created successfully"
Then the app should show the message "Incorrect email or password"
And the app should show the message "Password recovery email sent successfully"
Then the app should show the message "Something went wrong!"
But the app should show the message "User created successfully"
Pattern
Then(/^the app should show the message "([^"]*)"$/, …)
Part of @webship-js/fastapi-steps (github.com/webship/fastapi-steps), a step pack for Webship-js 2.0.x.