Then the "Send email" modal should be open

Assert that a modal (or a slide-over) with a heading is open, and its transition finished; or that no modal (or none with that heading) is open.

Examples

Then the "Send email" modal should be open
Then the "Ship" slide-over should be open
And the "Delete" modal should be closed
Then no modal should be open
Then the "Ship" slide-over should be closed

Pattern

Then(/^(?:the "([^"]*)" (modal|slide-over) should be (open|closed)|no modal should be open)$/, …)

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