Dismiss a notification, by a text of it, with its own Dismiss; wait for it to go, and close the drawer.
Examples
When I dismiss the smart home's notification "Login attempt failed"
And we dismiss the smart home's notification "Webship test notice"
When I dismiss the smart home's notification "Webship test notice"
Then I dismiss the smart home's notification "Login attempt failed"
And I dismiss the smart home's notification "Example Notification"
Pattern
When(/^(?:I |we )?dismiss the smart home's notification "([^"]*)"$/, …)
Part of @webship-js/home-assistant-steps (github.com/webship/home-assistant-steps), a step pack for Webship-js 2.0.x.