Assert the message the site answered with ("Your file has been deleted successfully", "Invitation sent successfully"), or a part of it: the message at the bottom of the page, recorded as it came.
Examples
Then the site should say "Your project has been deleted successfully"
Then the site should say "Your file has been deleted successfully"
And the site should say "Invitation sent successfully"
Then the site should say "Team created successfully"
Then the site should say "Password recovery link sent to your inbox."
Pattern
Then(/^the site should say "([^"]*)"$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.