Assert the badge of a sidebar item: any badge, or the one it reads.
Examples
Then the "Orders" item of the sidebar should show a badge
Then the "Products" item of the sidebar should show the badge "9"
And the "Customers" item of the sidebar should not show a badge
Then the "Leave Requests" item of the sidebar should show a badge
And the "Expenses" item of the sidebar should show the badge "69"
Pattern
Then(/^the "([^"]*)" item of the sidebar should( not)* show (?:a badge|the badge "([^"]*)")$/, …)
Part of @webship-js/filament-steps (github.com/webship/filament-steps), a step pack for Webship-js 2.0.x.