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.

Page load times out for Chrome and Electron but works from Firefox beta when submitting a simple login form

See original GitHub issue

Current 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: Chrome

Electron 80: Electron

Firefox 77 beta: Firefox

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jennifer-shehanecommented, Jun 18, 2020

@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.

2reactions
jennifer-shehanecommented, Jun 18, 2020

@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:

Mixed Content: The page at ‘https://qechallenge2-mcg.azurewebsites.net/__/#/tests/integration/spec.js’ was loaded over HTTPS, but requested an insecure form action ‘http://qechallenge2-mcg.azurewebsites.net/calculator’. This request has been blocked; the content must be served over HTTPS.

Outside of Cypress this goes to the http URL then issues a 301 redirect to the https URL.

This is a chrome web security warning and can be bypassed within Cypress by passing chromeWebSecurity: false to your cypress.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.

Read more comments on GitHub >

github_iconTop 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 >

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