Then I should see the form success message

Assert the Webflow form's success message (.w-form-done) is, or is not, visible: the state the runtime shows after the form endpoint accepts a submission. It looks at the form the scenario submitted last, or at any form of the page when none was.

Examples

Then I should see the form success message
Then I should see the form success state
And we should see the form success message
Then I should not see the form success message
And I should see the form success state

Pattern

Then(/^(I |we )*should( not)* see the form success (?:message|state)$/, …)

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