You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m writing a Cypress test where a link in my application opens a PDF file in a blob URL in new tab. The PDF viewer is the built-in viewer in google chrome. After clicking the link, the browser navigates to a blob:https//pdfurl..#page=1
✅ What I Can Do
I am able to stub and open pdf in same tab and I’m able to capture the blob URL using cy.url() after the link is clicked.
Is there any recommended Cypress-compatible approach to:
Confirm that the viewer successfully navigates to page 2 of the PDF when page=2 is appended to the blob URL?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m writing a Cypress test where a link in my application opens a PDF file in a blob URL in new tab. The PDF viewer is the built-in viewer in google chrome. After clicking the link, the browser navigates to a blob:https//pdfurl..#page=1
✅ What I Can Do
I am able to stub and open pdf in same tab and I’m able to capture the blob URL using cy.url() after the link is clicked.
Is there any recommended Cypress-compatible approach to:
Confirm that the viewer successfully navigates to page 2 of the PDF when page=2 is appended to the blob URL?
Beta Was this translation helpful? Give feedback.
All reactions