Assert the page asks for confirmation with a question (the heading of the confirmation form). The heading only needs to contain the text.
Examples
Then I should be asked to confirm "Are you sure you want to delete"
Then I should be asked to confirm "Are you sure you want to delete Opening hours?"
And we should be asked to confirm "Are you sure you want to delete the term"
Then I should be asked to confirm "Are you sure you want to delete these content items?"
And should be asked to confirm "Are you sure"
Pattern
Then(/^(I |we )*should be asked to confirm "([^"]*)"$/, …)
Part of @webship-js/backdrop-cms-steps (github.com/webship/backdrop-cms-steps), a step pack for Webship-js 2.0.x.