-
Notifications
You must be signed in to change notification settings - Fork 16
PB-2064: Fix header test #1523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat-PB-1383-pinia-store
Are you sure you want to change the base?
PB-2064: Fix header test #1523
Conversation
6f9ec35 to
cb87015
Compare
web-mapviewer
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Project |
web-mapviewer
|
| Branch Review |
fix-pb-2064-header-test
|
| Run status |
|
| Run duration | 10m 31s |
| Commit |
|
| Committer | Ismail Sunni |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
60
|
|
|
0
|
|
|
19
|
|
|
0
|
|
|
146
|
| View all changes introduced in this branch ↗︎ | |
Tests for review
drawing.cy.ts • 1 failed test • e2e/chrome/mobile
| Test | Artifacts | |
|---|---|---|
| An uncaught error was detected outside of a test |
Test Replay
Screenshots
|
|
timeSlider.cy.ts • 1 failed test • e2e/chrome/mobile
| Test | Artifacts | |
|---|---|---|
| An uncaught error was detected outside of a test |
Test Replay
Screenshots
|
|
print.cy.ts • 1 failed test • e2e/chrome/mobile
| Test | Artifacts | |
|---|---|---|
| An uncaught error was detected outside of a test |
Test Replay
Screenshots
|
|
legacyParamImport.cy.ts • 1 failed test • e2e/chrome/mobile
| Test | Artifacts | |
|---|---|---|
| An uncaught error was detected outside of a test |
Test Replay
Screenshots
|
|
menuTray.cy.ts • 1 failed test • e2e/chrome/mobile
| Test | Artifacts | |
|---|---|---|
| An uncaught error was detected outside of a test |
Test Replay
Screenshots
|
|
The first 5 failed specs are shown, see all 24 specs in Cypress Cloud.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a header test by correcting the app reset functionality to properly use hash-based routing. The reset function previously attempted to change the full URL with window.location.href, which was incompatible with the app's hash-based routing architecture. The fix updates it to use window.location.hash followed by a forced reload.
- Changed from setting
window.location.hrefto settingwindow.location.hashand callingwindow.location.reload() - Added explanatory comments about hash-based URL setting and forced reload behavior
- Ensures proper page reload for Cypress tests that wait for API calls
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
cb87015 to
2f6614c
Compare
2f6614c to
949f4fd
Compare
Test link