Then the "danger" admonition should say "Never put a password or a key in a page."

Assert an admonition of a type says a text (a part of its content, case and spacing aside).

Examples

Then the "danger" admonition should say "Never put a password or a key in a page."
And the "note" admonition should say "Edit this page"
Then "tip" admonition should say "Short sentences"
And the "warning" admonition should say "gets the name of its file"
Then the "info" admonition should say "written in Markdown"

Pattern

Then(/^(?:the )?"(note|tip|info|warning|danger|caution)" admonition should say "([^"]*)?"$/, …)

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