Skip to content

Conversation

@ismailsunni
Copy link
Contributor

@ismailsunni ismailsunni commented Dec 3, 2025

@github-actions github-actions bot added the bug label Dec 3, 2025
@ismailsunni ismailsunni changed the base branch from develop to feat-PB-1383-pinia-store December 3, 2025 07:02
@ismailsunni ismailsunni force-pushed the fix-pb-2064-header-test branch from 6f9ec35 to cb87015 Compare December 3, 2025 07:03
@cypress
Copy link

cypress bot commented Dec 3, 2025

web-mapviewer    Run #6135

Run Properties:  status check errored Errored #6135  •  git commit 2f6614c225: PB-2064: Fix reset app on clicking the confederation logo.
Project web-mapviewer
Branch Review fix-pb-2064-header-test
Run status status check errored Errored #6135
Run duration 10m 31s
Commit git commit 2f6614c225: PB-2064: Fix reset app on clicking the confederation logo.
Committer Ismail Sunni
View all properties for this run ↗︎

Test results
Tests that failed  Failures 60
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 19
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 146
View all changes introduced in this branch ↗︎

Tests for review

Failed  drawing.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  timeSlider.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  print.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  legacyParamImport.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  menuTray.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

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.

@ismailsunni ismailsunni marked this pull request as ready for review December 3, 2025 08:41
@ismailsunni ismailsunni requested review from Copilot and pakb December 3, 2025 08:41
Copilot finished reviewing on behalf of ismailsunni December 3, 2025 08:44
Copy link
Contributor

Copilot AI left a 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.href to setting window.location.hash and calling window.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.

@ismailsunni ismailsunni force-pushed the fix-pb-2064-header-test branch from cb87015 to 2f6614c Compare December 4, 2025 07:12
@ismailsunni ismailsunni force-pushed the fix-pb-2064-header-test branch from 2f6614c to 949f4fd Compare December 5, 2025 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants