Assert that the dashboard (the page on screen) shows a widget by its title, and, when given, that the widget shows a text once it has loaded.
Examples
Then the dashboard should show the widget "Contacts Created"
Then the dashboard should show the widget "Recent Activity"
And the dashboard should show the widget "Upcoming Emails" saying "No emails are scheduled to be sent."
Then the dashboard should show the widget "Form Submissions"
Then the dashboard should show the widget "Page Visits"
Pattern
Then(/^the dashboard should show the widget "([^"]*)"(?: saying "([^"]*)")?$/, …)
Part of @webship-js/mautic-steps (github.com/webship/mautic-steps), a step pack for Webship-js 2.0.x.