Assert the list of the members directory shows (or does not show) a member, by a handle of the users registry or by the name the community shows.
Examples
Then the members directory should list "member"
And the members directory should list "Organizer Test"
Then the members directory should not list "newcomer"
And the members directory should not list "Nobody Test"
Then the members directory should list "moderator"
Pattern
Then(/^the members directory should( not)* list "([^"]*)"$/, …)
Part of @webship-js/buddypress-steps (github.com/webship/buddypress-steps), a step pack for Webship-js 2.0.x.