The library says a text: in its messages (toasts: they have no role, so they are read by their text), a form's error, or anywhere on the page. Waits for it.
Examples
Then the library should say "Trashed 1 asset"
Then the library should say "Incorrect email or password"
And the library should say "Added 1 asset to the album"
Then the library should say "Restored 1 asset"
But the library should say "Permanently deleted 1 asset"
Pattern
Then(/^the library should say "([^"]+)"$/, …)
Part of @webship-js/immich-steps (github.com/webship/immich-steps), a step pack for Webship-js 2.0.x.