Assert what the open dialog says, or that it does not say a text ("2 of 2 elements selected", "Some members are already on the team").
Examples
Then the dialog should say "2 of 2 elements selected"
Then the dialog should say "Some members are already on the team. We'll invite the rest."
And the dialog should not say "Some members are already on the team"
Then the dialog should say "Invalid color value: 1"
Then the dialog should say "Anyone with link will have access"
Pattern
Then(/^the dialog should( not)? say "([^"]*)"$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.