Open a page in the source editor (the "Edit source" tab, action=edit), as an account of the users registry or a visitor. The step waits for the editor's toolbar module and closes the visual editor's welcome dialog when it shows.
Examples
When I edit the page "Editing test page"
When we edit the page "Page made in the source editor"
And I edit the page "Conflict test page"
When I edit the page "Protected test page"
When I edit the page "Talk:Reading test page"
Pattern
When(/^(I |we )*edit the page "([^"]*)"$/, …)
Part of @webship-js/mediawiki-steps (github.com/webship/mediawiki-steps), a step pack for Webship-js 2.0.x.