Assert who is signed in, as the page says (wgUserName): an account of the users registry by its handle, or nobody. A page that is not the wiki's (the browser's own error page) is replaced by Special:BlankPage first.
Examples
Then I should be logged in as "editor"
Then we should be logged in as "administrator"
And I should be logged in as "reader"
Then I should not be logged in as "editor"
Then we should not be logged in as "reader"
Pattern
Then(/^(I |we )*should( not)* be logged in as "([^"]*)"$/, …)
Part of @webship-js/mediawiki-steps (github.com/webship/mediawiki-steps), a step pack for Webship-js 2.0.x.