Then post 1 should offer the link "Edit"

Assert the forums offer (or do not offer) a link on a post, by its text: Edit, Reply, Merge, Close, Stick, Trash, Spam, Unapprove, Move, Split.

Examples

Then post 1 should offer the link "Edit"
And post 2 should not offer the link "Trash"
Then the last post should offer the link "Split"
Then post 1 should not offer the link "Merge"
And the last post should offer the link "Reply"

Pattern

Then(/^(?:post (\d+)|the last post) should( not)* offer the link "([^"]*)"$/, …)

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