fix: badge navigation + settings plugin name for E2E #56

Merged
ghost merged 2 commits from fix/e2e-badge-nav-and-settings-name into main 2026-03-17 17:06:14 +00:00

2 Commits

Author SHA1 Message Date
Gandalf the Greybeard 8def942917 fix: use Object.defineProperty for window.location in test
Replace `as Location` cast with Object.defineProperty to match the
existing beforeEach pattern and fix TypeScript strict mode error.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-17 00:39:56 +00:00
Gandalf the Greybeard 9241655c02 fix: badge navigation uses window.location + correct settings plugin name
- AppBarScoreBadge: Read cluster from window.location.pathname instead of
  useCluster() (returns null in AppBar context) or useLocation() (may not
  reflect cluster prefix outside cluster route context)
- registerPluginSettings: Use 'polaris' to match the deployed directory name
  (plugin is at static-plugins/polaris, not headlamp-polaris)
- Add unit test for no-cluster fallback navigation

Supersedes the source-code fixes from PR #55 without the workflow/deploy
script changes that broke CI.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-16 11:47:57 +00:00