https://cypress.io logo
The button or link you click will have the URL for...
# e2e-testing
a
The button or link you click will have the URL for the pdf, extract that and using this plugin https://www.npmjs.com/package/cypress-downloadfile