Then a visitor should see the file "Homepage" with the share link

Assert what a person with no account sees with the share link (in a browser of their own): the view mode of the file, or, once the link is destroyed, the login form and no file.

Examples

Then a visitor should see the file "Homepage" with the share link
Then a visitor should not see the file "Homepage" with the share link
And a visitor should see the file "Homepage" with the share link
Then a visitor should see the file "Webship test file" with the share link
But a visitor should not see the file "Webship test file" with the share link

Pattern

Then(/^a visitor should( not)? see the file "([^"]*)" with the share link$/, …)

Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.