question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pages from CodeSandbox urls are blank on `cy.visit()`

See original GitHub issue

Current behavior:

I’m trying to naviage to an app using cy.visit. The app url is *use any csb test app/. However cy.visit loads the page as a blank white page.

Desired behavior:

The page should actually load and display items.

Test code to reproduce

describe('random test',function(){
  it('Logins in to sandbox',function(){
    cy.visit("https://ky998.csb.app/")
  })
})

Versions

Cypress 5 , MacOS and Windows, Google Chrome, Electron and Firefox

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
codylindleycommented, Apr 21, 2021

Heads up, the following code sandbox url works fine in cypress

https://ti2os.csb.app?standalone

Note the use of ?standalone on the preview URL from the codesandbox.

0reactions
codylindleycommented, Apr 14, 2021

Cypress will load the sandbox url (e.g. https://codesandbox.io/s/goodbye-daft-punk-ti2os?from-embed), even the sandbox embed URL (https://codesandbox.io/embed/goodbye-daft-punk-ti2os), but it won’t load the preview URL for a sandbox (e.g. https://ti2os.csb.app/). I’ve asked codesandbox.io support if they have any thoughts.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cypress-io/cypress - Gitter
I'm trying to run tests with localhost:3030 url and it is showing a blank page, I've tried even with cy.visit('https://www.google.com') to see if...
Read more >
URLSearchParams example - CodeSandbox
CodeSandbox is an online editor tailored for web applications.
Read more >
Visit The Blank Page Between Cypress Tests - Gleb Bahmutov
This could be confusing if the next test does not immediately start with cy.visit. For example, the JavaScript call.
Read more >
The `.gitlab-ci.yml` file - GitLab Docs
GitLab CI/CD not only executes the jobs but also shows you what's happening during execution, just as you would see in your terminal:....
Read more >
cypress fix this problem, or use {force: true} to disable error ...
CypressError: cy.check() failed because this element is not visible: ... We get this error on multiple pages, and we can see that we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found