Page load times out for Chrome and Electron but works from Firefox beta when submitting a simple login form
See original GitHub issueCurrent behavior:
Page load times out for Chrome and Electron but works from Firefox beta when submitting a simple login form
Not sure exactly what the root cause is, however, the login form itself is very simple, created with h1, form, and input tags with help of Bootstap and jQuery. I have looked through the GitHub open issues but didn’t find anything for this exact issue. Let me know if more info is needed.
Chrome 83:
Electron 80:
Firefox 77 beta:
Desired behavior:
Page should load properly for Chrome and Electron, just like it loads for Firefox beta
Test code to reproduce
loginURL is: https://qechallenge2-mcg.azurewebsites.net/login Username: shahsar2013@gmail.com Password: (removed for security purpose)
describe('Positive Log In Scenario', () => {
before(() => {
cy.visit(data.base.loginURL);
})
it.only('I am logged in', () => {
cy.get('input[type="email"]').type(data.validCred.userName);
cy.get('input[type="password"]').type(data.validCred.passWord);
cy.get('form').submit();
})
})
Versions
Cypress: 4.8.0 MacOS: Catalina 10.15.4 Browsers: Chrome 83, Electron 80, Firefox 77 beta
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (3 by maintainers)
Top Results From Across the Web
Fix login issues on websites that require a username and ...
If you find that you can't log in to a website that requires a username and password, follow the steps described in this...
Read more >Page load time in Google Chrome or Mozilla Firefox
Chrome -> Right Click -> Inspect Element -> Network Tab. When you load a page there is a nice report for the timeline...
Read more >The File System Access API: simplifying access to local files
The File System Access API enables developers to build powerful web apps that interact with files on the user's local device, such as...
Read more >Chromium Blog
Today, we are pleased to announce that passkey support is now available in Chrome Stable M108. What are passkeys? Passwords are typically the ......
Read more >How To Debug Components, State, and Events with Vue.js ...
Vue.js Devtools is a browser extension for Chrome and Firefox and a ... a sample application that you can use in later steps...
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
@johannesschobel We release every 2 weeks on Monday. Barring any unforeseen challenges encountered during release, it should be released Monday, Jun 22 sometime during EST working hours.
@johannesschobel @kamranayub Your issues sound related to https://github.com/cypress-io/cypress/issues/7679 - which was a regression introduced in 4.8.0 that will be fixed in our next release. I can’t be sure without a reproducible example, but it sounds very similar. These issues seem unrelated to the original issue.
@shahsar2013 As to the original issue, If you open your Devtools when the test is running, you’ll see an error being displayed:
Outside of Cypress this goes to the
http
URL then issues a 301 redirect to thehttps
URL.This is a chrome web security warning and can be bypassed within Cypress by passing
chromeWebSecurity: false
to yourcypress.json
configuration. Your test will pass with this setting.Although you should probably update the form to route to an
https
url as this is a security vulnerability.