Assert that the Invitations section of the team that is open lists an address, with its status when one is named ("Pending"), or does not list it.
Examples
Then the invitations should list "webship-test-invite@example.com" as "Pending"
Then the invitations should not list "webship-test-invite@example.com"
And the invitations should list "webship-test-invite@example.com"
Then the invitations should list "webship-test-join@example.com" as "Pending"
But the invitations should not list "webship-test-join@example.com"
Pattern
Then(/^the invitations should( not)? list "([^"]*)"(?: as "([^"]*)")?$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.