Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'other' targets (e.g. pdf documents embedded in an object tag) may not fully load #28228

Closed
ryanthemanuel opened this issue Nov 2, 2023 · 1 comment · Fixed by #28229
Closed

Comments

@ryanthemanuel
Copy link
Collaborator

Current behavior

PDFs embedded in object tags will not fully load and this can cause cy.visit to timeout

Desired behavior

cy.visit should not timeout

Test code to reproduce

Test Code

context('Test', () => {
  it('visit site with unsupported content', () => {
    cy.visit('http://localhost:1515/other_target.html')
  })
})

HTML

<!DOCTYPE html>
<html>
  <head>
    <title>mask-unsupported-content</title>
  </head>
  <body>
    <!-- Video Player -->
    <h2>Video Player</h2>
    <video width="640" height="360" controls>
      <source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm" type="video/mp4" />
      Your browser does not support the video tag.
    </video>

    <!-- Objects -->
    <h2>Objects</h2>
    <object type="application/pdf" data="/other-target.pdf" width="250" height="200"></object>
  </body>
</html>

Cypress Version

13.3.2 and greater

Node version

any

Operating System

any

Debug Logs

No response

Other

No response

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 8, 2023

Released in 13.5.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.5.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Nov 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants