When I press "Mark as Favorite" on the update "The new pattern library is out"

Press a button of an item of the stream ("Mark as Favorite", "Remove Favorite", "Delete"), by words of its text, and wait for its outcome; "Delete" answers the question "Are you sure?" with yes. A favorite comes back as it was when the scenario ends (a delete is the stream's own: only test content should be deleted).

Examples

When I press "Mark as Favorite" on the update "The new pattern library is out"
And I press "Remove Favorite" on the update "Welcome to the Webship Community!"
When I press "Delete" on the update "Webship test update one"
And we press "Mark as Favorite" on the update "Club meeting on Thursday"
When I press "Remove Favorite" on the update "The new pattern library is out"

Pattern

When(/^(I |we )*press "(Mark as Favorite|Remove Favorite|Delete)" on the update "([^"]*)"$/, …)

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