Skip to content

cypress reloads in infinite loop when calling cy.visit to http URL that upgrades to https. #25891

Closed
@Jsijbel

Description

@Jsijbel

Current behavior

When visiting a page that triggers certain redirects, the test runner keeps reloading and looping endlessly.

2023-02-21_10-39-18.mp4

Desired behavior

Not reload the test runner and follow redirects.

Test code to reproduce

describe('example cypress reload issue', () => {
  it('keeps reloading', () => {
    cy.visit('https://enexis.nl/mijn-enexis/mijn-aanvragen')
  })
})

Cypress Version

12.6

Node version

18.12.1

Operating System

Win 11

Debug Logs

No response

Other

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions