Then the admin bar should show the account "webmaster"

Assert the admin bar shows the account's display name in its account menu.

Examples

Then the admin bar should show the account "webmaster"
And the admin bar should show the account "Jane Editor"
Then the admin bar should not show the account "someone else"
And the admin bar should show the account "editor"
Then the admin bar should show the account "admin"

Pattern

Then(/^the admin bar should( not)* show the account "([^"]*)"$/, …)

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