ChainSafe / ChainSafe/ui-monorepo

Tests related to cross-origin navigation fail

Open
#2,198 0 comments 0 reactions 0 assignees View on GitHub
Testing
Dominant language
TypeScript
Stars
50
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Some specific Storage tests have been failing recently with the following error, see [here](https://github.com/ChainSafe/ui-monorepo/runs/6982901126?check_suite_focus=true)

```
| 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/', () => {`
| ` `
| `})`
|
| 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.
```

Contributor guide

Open the contributing guide

Research direction

Start with the linked CI run and the failing “Main Navigation” desktop test for navigating to the docs page. Inspect cypress.config.ts and the test entry point to understand the cross-origin navigation setup. Done means the affected Storage tests complete successfully without the 60-second cross-origin load timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
cypress, typescript
Domain
frontend, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.