When I press "Export" in the dialog to download a file

Press a button of the open dialog that downloads a file ("Export" of the PDF export): the file is kept for webship-js's download steps ("the downloaded file name should be …").

Examples

When I press "Export" in the dialog to download a file
When we press "Export" in the dialog to download a file
And I press "Export" in the dialog to download a file
When I press "Export" in the dialog to download a file
When I press "Download" in the dialog to download a file

Pattern

When(/^(?:I|we) press "([^"]*)" in the dialog to download a file$/, …)

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