Skip to content

Tests related to cross-origin navigation fail #2198

@Tbaut

Description

@Tbaut

Some specific Storage tests have been failing recently with the following error, see here

|   1) Main Navigation
 |        desktop
 |          can navigate to the docs page:
 |      CypressError: Timed out after waiting `60000ms` for your remote page to load on origin(s):
 | 
 | - `http://localhost:3000`
 | 
 | A cross-origin request for `[https://docs.storage.chainsafe.io/`](https://docs.storage.chainsafe.io/%60) was detected.
 | 
 | A command that triggers cross-origin navigation must be immediately followed by a `cy.origin()` command:
 | 
 | `cy.origin('https://chainsafe.io/', () => {`
 | `  <commands targeting https://docs.storage.chainsafe.io/ go here>`
 | `})`
 | 
 | If the cross-origin request was an intermediary state, you can try increasing the `pageLoadTimeout` value in `cypress.config.ts` to wait longer.
 | 
 | Browsers will not fire the `load` event until all stylesheets and scripts are done downloading.
 | 
 | When this `load` event occurs, Cypress will continue running commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TestingAdded to issues to signal that it is part of an epic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions