Then the "Messages" button should show the badge "5"

A button, a link, a heading, a menu item or a tab shows a badge or a label with a text, or with "not" does not. The element is named by its own text, without the badge ("Messages" for a button that reads "Messages 5").

Examples

Then the "Messages" button should show the badge "5"
Then the "Messages" link should show the badge "5"
Then the "Reports" menu item should show the badge "3"
Then the "Overview" menu item should not show the badge "3"
Then the "Messages" button should not show the badge "6"

Pattern

Then(/^the "([^"]*)" (button|link|heading|menu item|tab) should( not)? show the badge "([^"]*)"$/, …)

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