Assert the header of the member's or the group's page offers (or does not offer) a button ("Add Friend", "Cancel Friendship", "Private Message", "Join Group", "Leave Group", "Request Membership", "Request Sent").
Examples
Then the page should offer the button "Add Friend"
And the page should offer the button "Private Message"
Then the page should not offer the button "Add Friend"
And the page should offer the button "Leave Group"
Then the page should offer the button "Request Sent"
Pattern
Then(/^the page should( not)* offer the button "([^"]*)"$/, …)
Part of @webship-js/buddypress-steps (github.com/webship/buddypress-steps), a step pack for Webship-js 2.0.x.