fix: resolve 6 E2E failures — cluster URL prefix + settings registration #51

Merged
ghost merged 1 commits from fix/e2e-settings-and-route-url into main 2026-03-15 19:40:27 +00:00

1 Commits

Author SHA1 Message Date
gandalf-the-greybeard[bot] 0bedbf5789 fix: resolve 6 E2E failures — cluster URL prefix + settings registration
Two root causes for the remaining 6 E2E failures after PR #50:

1. AppBarScoreBadge: Router.createRouteURL('polaris') was called without
   the cluster parameter, producing '/polaris' instead of '/c/main/polaris'.
   Now uses K8s.useCluster() to pass the active cluster. (appbar.spec.ts:18)

2. Plugin settings: registerPluginSettings was called with 'polaris' but
   the package.json name is 'headlamp-polaris'. Headlamp matches settings
   registrations to the package name, so the component never rendered.
   (settings.spec.ts — all 5 tests)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-15 18:17:51 +00:00