Assert what a submenu of the workspace's main menu offers ("File", "Edit", "View"), or that an item is not there (a viewer has no "Add as Shared Library", no "Undo").
Examples
Then the main menu "File" should offer "Add as Shared Library"
Then the main menu "Edit" should not offer "Undo"
And the main menu "File" should offer "Export boards as PDF"
Then the main menu "Edit" should offer "Redo"
Then the main menu "View" should offer "Hide comments"
Pattern
Then(/^the main menu "([^"]*)" should( not)? offer "([^"]*)"$/, …)
Part of @webship-js/penpot-steps (github.com/webship/penpot-steps), a step pack for Webship-js 2.0.x.