Then the row of "member" in the members directory should offer "Add Friend"

Assert a row of the members directory offers (or does not offer) a button ("Add Friend", "Cancel Friendship", "Cancel Friendship Request").

Examples

Then the row of "member" in the members directory should offer "Add Friend"
And the row of "organizer" in the members directory should offer "Cancel Friendship"
Then the row of "newcomer" in the members directory should not offer "Add Friend"
And the row of "Moderator Test" in the members directory should offer "Add Friend"
Then the row of "member" in the members directory should not offer "Cancel Friendship"

Pattern

Then(/^the row of "([^"]*)" in the members directory should( not)* offer "([^"]*)"$/, …)

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