Assert the friendship button of the member's profile that is open reads a state ("Add Friend", "Cancel Friendship Request", "Cancel Friendship").
Examples
Then the profile's friendship button should read "Cancel Friendship Request"
And the profile's friendship button should read "Add Friend"
Then the profile's friendship button should read "Cancel Friendship"
And the profile's friendship button should read "Cancel Friendship Request"
Then the profile's friendship button should read "Add Friend"
Pattern
Then(/^the profile's friendship button should read "([^"]*)"$/, …)
Part of @webship-js/buddypress-steps (github.com/webship/buddypress-steps), a step pack for Webship-js 2.0.x.