Chrome hangs on application open intent with --waiting for new page to load--
See original GitHub issueCurrent behavior:
Cypress waits indefinitely for window prompt
Desired behavior:
Testing commands should continue to execute regardless of the opened window
Test code to reproduce
Given we have an html defined using react (not using jsx to make it easier to run in a generic environment)
ReactDOM.render(React.createElement(
'a', {href:"vscode://someurl", 'data-cy':"testing-app"},
"TESTING CYPRESS"
), document.getElementById('main-container'));
or in HTML
<a href="vscode://someurl" data-cy="testing-app">TESTING CYPRESS</a>
The follow test fails to pass
it('does not work', () => {
cy.visit('/')
cy.get('[data-cy="testing-app"]').click();
cy.get('[data-cy="testing-app"]').should('exist');
});
Versions
Cypress: 5.10.0, 4.10.0 MacOS: Catalina 10.15.6 Browsers: Chrome 84
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
[chromium-dev] Web application "stalled" for 1.3 min on initial ...
Open a new tab and visit the application URL app.boardingware.com; It will get stuck on "Connecting..." at the bottom left corner for ...
Read more >Fix Chrome if it crashes or won't open - Computer
Quit Chrome and reopen it: Windows: Press Ctrl + q. Mac: Press ⌘ + q. Try loading the page again. Tip: You can...
Read more >738724 - Chrome tabs not redirecting back to app without user ...
Chrome tabs should be closed and the app should catch the intent with the custom scheme even when there is no user interaction....
Read more >App startup time - Android Developers
At the beginning of a cold start, the system has three tasks. These tasks are: Loading and launching the app. Displaying a blank...
Read more >Chrome freezes when loading page - Stack Overflow
Try opening the console before you load the page. Specially the network tab, perhaps. – Alexander. Mar 8, 2014 at 16:29.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m referring to this as it is a real blocker for testing business applications. Let’s consider a typical scenario:
A (base url for Cypress tests) -> B (OAuth login form) -> A (redirect uri for OAuth). A and B don’t share the same site.
Note that:
disableWebSecurity = true
I have to hackX-frame-options
using a Chrome extension for fixing “Refused to display ‘https://login.provider.com’ in a frame because it set ‘X-Frame-Options’ to ‘deny’.” This happens because Cypress loads the application into an iframe. Unfortunately, I’m not allowed to load the according Chrome extension due to a corporate policy.)With the following test, I can navigate to the OAuth login form hosted on domain B (meaning: I can see the rendered page):
however, then I also see this warning
If I manually finish the OAuth flow using valid credentials (of course I have to do it within the timeout) then the state of that line turns to
The state of the application is correct, I successfully finished the OAuth flow and the application has a correct state.
But Cypress shows this error:
The stacktrace is:
I think some of the Firefox preferences could fix it. Do you know what is the counterpart of
disableWebSecurity
when running Firefox? I found https://bugzilla.mozilla.org/show_bug.cgi?id=1039678 which is still open but I assume that some combination of FF preferences could provide the same behavior.Thanks, but It not helps.
I want enter with contact with you! You can take a look in your LinkedIn?please