When I press "Join Group" on the group page

Press the button of the group's header ("Join Group", "Leave Group", "Request Membership") and wait for its new state. The account's place in the group comes back as it was when the scenario ends.

Examples

When I press "Join Group" on the group page
And I press "Leave Group" on the group page
When we press "Request Membership" on the group page
And I press "Join Group" on the group page
When I press "Leave Group" on the group page

Pattern

When(/^(I |we )*press "(Join Group|Leave Group|Request Membership)" on the group page$/, …)

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