Then the "Email" field should show the message "Please enter a valid email address."

The message a field shows: the text it points at with aria-describedby (Material UI's helper text).

Examples

Then the "Email" field should show the message "Please enter a valid email address."
And the "Password" field should show the feedback "Password must be at least 6 characters long."
Then the "Full name" field should show the message "Name is required."
And the "Email" field should show the feedback "Please enter a valid email address."
Then the "Age" field should show the message "Age must be at least 18."

Pattern

Then(/^the "([^"]*)" field should show the (?:message|feedback) "([^"]*)"$/, …)

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