The newest activity of the stream on screen reads as given (the words a person reads, as the whole subject): "You created meeting-notes.md", "You shared team-photo.png with Editor".
Examples
Then the newest activity should be "You created meeting-notes.md"
Then the newest activity should be "You shared team-photo.png with Editor"
And the newest activity should be "You deleted budget.txt"
Then the newest activity should be "You renamed meeting-notes.md to minutes.md"
Then the newest activity should be "You restored budget.txt"
Pattern
Then(/^the newest activity should be "([^"]*)"$/, …)
Part of @webship-js/nextcloud-steps (github.com/webship/nextcloud-steps), a step pack for Webship-js 2.0.x.