Assert the row of a group in the groups list offers (or does not offer) a button ("Join Group", "Leave Group", "Request Membership", "Request Sent").
Examples
Then the row of the group "Webship Club" should offer "Join Group"
And the row of the group "Design Circle" should offer "Request Membership"
Then the row of the group "Webship Club" should not offer "Join Group"
And the row of the group "Webship Club" should offer "Leave Group"
Then the row of the group "Design Circle" should not offer "Join Group"
Pattern
Then(/^the row of the group "([^"]*)" should( not)* offer "([^"]*)"$/, …)
Part of @webship-js/buddypress-steps (github.com/webship/buddypress-steps), a step pack for Webship-js 2.0.x.