When I send the form with "Create Invoice"

Send a form with its button, by the button's name: the step waits for the button to be hydrated, clicks it, and waits for the form's action on the server and for the page that follows (the same page with its messages, or the page the action sends the browser to). It fails when the browser holds the form back (a required field left empty, an address that is not one).

With "in the "…" row", the button is the one of the table row that holds that text (a "Delete" button on each row of a list).

Examples

When I send the form with "Create Invoice"
And we send the form with "Edit Invoice"
When I send the form with "Log in"
When I send the form with "Delete" in the "$42.17" row
And I send the form with "Delete" in the "Oak Example" row

Pattern

When(/^(I |we )*send the form with "([^"]*)?"(?: in the "([^"]*)?" row)?$/, …)

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