Then the "Open notifications" button should show the badge "4"

The badge a button, link, heading, menu item or tab shows (Material UI's Badge around it), or none.

Examples

Then the "Open notifications" button should show the badge "4"
And the "Inbox" menu item should not show the badge "2"
Then the "Inbox" menu item should show the badge "2"
And the "Orders" link should show the badge "5"
Then the "Messages" tab should not show the badge "1"

Pattern

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

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