window.alert hold page load forever even chromeWebSecurity set to false
See original GitHub issueCurrent behavior:
My app require to test third-party payment, so I have to setup chromeWebSecurity
to false
.
After redirect to different superdomain, the alertbox won’t be auto accepted.
Desired behavior:
The alert box should be auto accepted.
Steps to reproduce: (app code and test code)
Here is the repo to reproduce, steps in the README.md
.
https://github.com/zackexplosion/cypress-alert-issue
test code is very simple.
describe('alert will hold page load', function() {
it('forever', function() {
// Just a blank page.
cy.visit('http://127.0.0.1:8080')
// after form submit, it will redirect to http://127.0.0.1:8081/alert, and the alertbox won't be accepted.
cy.get('#_form_aiochk').submit()
})
})
Versions
Cypress: 3.2.0 MacOS: 10.13.6 Browser: Chrome 74.0.3729.131
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Web Security - Cypress Documentation
Setting chromeWebSecurity to false in Chrome-based browsers allows you to do the following: Display insecure content; Navigate to any superdomain without cross- ...
Read more >Disable Chrome Web Security for Cypress Testing
So I want to be able to change chromeWebSecurity before the test starts and not in Cypress.json. cy.log(Cypress.config("chromeWebSecurity")); ...
Read more >cypress-io/cypress - Gitter
Cypress detected a cross origin error happened on page load: ... "chromeWebSecurity": false causes the tests to break with chrome-error://chromewebdata url.
Read more >YOU54F – Breaking stuff daily
Ron Holshausen (at the time at DiUS, still one of the present day maintainers of Pact, ... Simply by setting chromeWebSecurity to false...
Read more >Everything You Need to Know About Cookies for Web ...
The server checks your login information, and if everything looks good, it sends the data needed to render the page back to your...
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 can recreate this from this repo: https://github.com/zackexplosion/cypress-alert-issue Likely does not work because the alert is being called from the new url being navigated to.
Did anyone find a solution for this?