Assert the question of the dialog the site asks before it acts ("Are you sure you want to delete this file?"), or a part of it.
Examples
Then the site should ask "Are you sure you want to delete this file?"
Then the site should ask "Are you sure you want to delete this project?"
And the site should ask "Are you sure you want to delete this team?"
Then the site should ask "Are you sure you want to remove this link?"
Then the site should ask "Do you want to restore this version?"
Pattern
Then(/^the site should ask "([^"]*)"$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.