Then the "Title" field should say "Title is required"

A field of a form says why it was refused: the field found by its label, marked invalid (aria-invalid="true"), its description (aria-describedby, aria-errormessage) containing the text. The official template's forms say it before they send anything. Letter case and white space do not count.

Examples

Then the "Title" field should say "Title is required"
Then the "Email" field should say "Invalid email address"
And the "Password" field should say "Password must be at least 8 characters"
Then the "Confirm Password" field should say "The passwords don't match"
But the "Email" field should say "Invalid email address"

Pattern

Then(/^the "([^"]+)" field should say "([^"]*)"$/, …)

Part of @webship-js/fastapi-steps (github.com/webship/fastapi-steps), a step pack for Webship-js 2.0.x.