Then the page should offer the "Friends" tab

Assert the member's or the group's page offers (or does not offer) a tab, with a count when one is given ("Friends 2", "Members 3").

Examples

Then the page should offer the "Friends" tab
And the page should offer the "Friends" tab with 2
Then the page should not offer the "Messages" tab
And the page should offer the "Members" tab with 3
Then the page should not offer the "Manage" tab

Pattern

Then(/^the page should( not)* offer the "([^"]*)" tab(?: with (\d+))?$/, …)

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