Assert what the members directory says about its list: the count under it ("Viewing 1 - 5 of 5 active members"), or the feedback of an empty list ("Sorry, no members were found.").
Examples
Then the members directory should say "Viewing 1 - 5 of 5 active members"
And the members directory should say "Sorry, no members were found."
Then the members directory should say "Viewing 1 active member"
And the members directory should say "of 5 active members"
Then the members directory should say "no members were found"
Pattern
Then(/^the members directory should say "([^"]*)"$/, …)
Part of @webship-js/buddypress-steps (github.com/webship/buddypress-steps), a step pack for Webship-js 2.0.x.