Assert the account the user menu names: the button that opens it carries the name of the signed-in account (a handle of the users registry stands for its name).
Examples
Then the user menu should name "administrator"
Then the user menu should name "user"
And the user menu should name "Jane Doe"
Then the user menu should name "John Doe"
And the user menu should name "administrator"
Pattern
Then(/^the user menu should name "([^"]*)"$/, …)
Part of @webship-js/symfony-steps (github.com/webship/symfony-steps), a step pack for Webship-js 2.0.x.