When I submit the dialog expecting errors

Press the main button of the open dialog without expecting it to close: for a scenario about the errors of the dialog.

Examples

When I submit the dialog expecting errors
When we submit the dialog expecting errors
And I submit the dialog expecting errors
When I try to submit the dialog
And we try to submit the dialog

Pattern

When(/^(I |we )*(submit the dialog expecting errors|try to submit the dialog)$/, …)

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