Then the "Newsletter" dialog should show "Get the news of the month in your mailbox"

A component shows a text: a dialog, a side panel, a drop-down menu, a notification or a tooltip once it is shown, a panel once it is expanded, a tab's content once the tab is active (the step waits for each, then for the text). With "not", the shown component does not show the text. The text is a part of what the component shows, compared without regard to letter case, white space and the kind of quote marks.

Examples

Then the "Newsletter" dialog should show "Get the news of the month in your mailbox"
Then the "Cart" side panel should show "2 items: a notebook and a pen."
Then the "Returns" panel should show "Send an item back within thirty days for a full refund."
Then the "Security" tab should show "Your password and the devices that are signed in."
Then the "Account" drop-down menu should not show "Delete the account"
Then the "Delivery details" drop-down menu should show "Orders placed before noon leave the warehouse the same day."

Pattern

Then(/^the "([^"]*)" (dialog|side panel|drop-?down menu|notification|tooltip|panel|tab) should( not)? show "([^"]*)"$/, …)

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