Skip to content

Since Cypress 12.15.0 (and on 13.5.0 still), "cy.readFile must only be invoked..." when using basic auth credentials in baseUrl #28336

Closed
@adrienharnay

Description

@adrienharnay

Current behavior

CypressError: Timed out retrying after 10000ms: `cy.readFile()` must only be invoked from the spec file or support file.

When defining a baseUrl with basic auth.

Since 12.15.0, also tested on 13.5.0.

Desired behavior

No response

Test code to reproduce

Here is the smallest possible reproduction: https://github.com/Brigad/cypress-test-tiny

Commit that introduced the bug: Brigad/cypress-test-tiny@e947d47

Cypress Version

13.5.0

Node version

20.6.0

Operating System

macOS

Debug Logs

CypressError: Timed out retrying after 10000ms: `cy.readFile()` must only be invoked from the spec file or support file.

Other

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions