Submit the attempt on screen, the way a student does: "Finish attempt ...", "Submit all and finish" on the summary, and "Submit all and finish" again in the dialog that asks to confirm. The browser ends on the review of the attempt.
Examples
When I submit the quiz attempt
When we submit the quiz attempt
And I submit the quiz attempt
Then I submit the quiz attempt
Given we submit the quiz attempt
Pattern
When(/^(I |we )*submit the quiz attempt$/, …)
Part of @webship-js/moodle-steps (github.com/webship/moodle-steps), a step pack for Webship-js 2.0.x.