Assert the group's page shows a text in its header or its body ("Private Group", "This is a private group and you must request group membership in order to join.", "Your membership request is awaiting approval …").
Examples
Then the group page should say "Private Group"
And the group page should say "This is a private group and you must request group membership in order to join."
Then the group page should say "Your membership request is awaiting approval from the group administrator."
And the group page should say "Public Group"
Then the group page should say "You successfully left the group."
Pattern
Then(/^the group page should say "([^"]*)"$/, …)
Part of @webship-js/buddypress-steps (github.com/webship/buddypress-steps), a step pack for Webship-js 2.0.x.