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.

exception: Whoops, there is no test to run when setting `window.top.location`

See original GitHub issue

when run visit https://weex.kaola.com/activity/pages/cosmetic.html?spm=a2v0d.b27995055.icon.1, it’s crash, Whoops, there is no test to run.

case:

cy.viewport(1024, 768);
cy.visit('https://m.kaola.com/');

cy.wait(1000);
cy.get('div.closeBtn').click();

cy.wait(1000);
cy.get('a:nth-child(1) > img.icon').click();

cy.visit('https://weex.kaola.com/activity/pages/cosmetic.html?spm=a2v0d.b27995055.icon.1');

Current behavior:

Desired behavior:

Test code to reproduce

Versions

cypress: 4.10.0 system: mac browser: chrome 83

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Raghav-Ramanathancommented, Mar 17, 2021

@jennifer-shehane : Any updates on this issue? This is a real blocker for us as asking an application code change for it to run on a certain tool isnt the best possible practice. Any updates on when this might become available would be great.

1reaction
jennifer-shehanecommented, Aug 21, 2020

@mylearning1005 You’d have to change the application code so that it no longer references window.top, so that it can be correctly run within an iframe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Messages | Cypress Documentation
Test File Errors No tests found This message means that Cypress was unable to find tests in the specified file. You'll likely get...
Read more >
Problems trying to running Symfony 2.0.14: "Whoops, looks ...
I am using Symfony 2.0.15 on Windows 7 running PHP 5.4.2 (later upgraded to 5.4.4) and encountered the same problem with same error...
Read more >
Stop frames from allowing themselves to navigate top without ...
navigate top if the top-level page doesn't have any sandbox flags set. ... one place, so there's no way to know if the...
Read more >
PHP: The Right Way
With PHP 5.4 or newer, you can start learning PHP without installing and ... if you develop code locally and then test it...
Read more >
Error handling, "try...catch" - The Modern JavaScript Tutorial
If there were no errors, then catch (err) is ignored: the execution ... The JavaScript engine first reads the code, and then runs...
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