Assert the activity stream on the page shows (or does not show) an item whose text holds some words, and, when given, whose header holds others ("Member Test posted an update", "joined the group Webship Club").
Examples
Then the activity stream should show "Welcome to the Webship Community!"
And the activity stream should show "Club meeting on Thursday" by "Moderator Test posted an update in the group Webship Club"
Then the activity stream should not show "Webship test update"
And the activity stream should show "The new pattern library is out" by "Member Test posted an update"
Then the activity stream should not show "Club meeting on Thursday"
Pattern
Then(/^the activity stream should( not)* show "([^"]*)"(?: by "([^"]*)")?$/, …)
Part of @webship-js/buddypress-steps (github.com/webship/buddypress-steps), a step pack for Webship-js 2.0.x.