The words of the development error overlay: its title (the kind of error) and its message contain them.
Examples
Then the development error overlay should show "invalid input syntax for type uuid"
And the development error overlay should show "PostgresError"
Then development error overlay should show "Failed to fetch invoice."
And the development error overlay should show "Server"
Then the development error overlay should show "invalid input syntax"
Pattern
Then(/^(?:the )?development error overlay should show "([^"]*)?"$/, …)
Part of @webship-js/nextjs-steps (github.com/webship/nextjs-steps), a step pack for Webship-js 2.0.x.