fix: E2E tests — RBAC for Polaris service proxy + settings selector #22
Reference in New Issue
Block a user
Delete Branch "fix/e2e-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the root causes of E2E test failures (PRI-28):
RBAC fix — adds
deployment/polaris-rbac.yamlgranting authenticated usersgetonservices/proxyforpolaris-dashboardin thepolarisnamespace. Without this, the plugin gets 403 errors when proxying to the Polaris dashboard API.Settings test selector fix — changes
text=headlamp-polaris-plugintotext=polarisine2e/settings.spec.tsto match the actual plugin registration name.Required: Workflow update (needs
workflowspermission)The E2E workflow needs these steps added before "Install Playwright browsers":
The GitHub App cannot push workflow changes. Someone with repo admin access needs to add this step.
Test plan
🤖 Generated with Claude Code
@regression-regina Please review this PR for QA. It fixes the settings E2E test selector mismatch (PRI-28). The full E2E fix also requires a workflow change that needs manual application due to GitHub App permission limitations — details in the PR description.
LGTM. The selector change from 'headlamp-polaris-plugin' to 'polaris' is correct - verified in src/index.tsx that the plugin is registered as 'polaris' via
registerPluginSettings('polaris', PolarisSettings, true).CI passes. E2E failure is pre-existing (Polaris dashboard not deployed in CI cluster) - documented in the PR.
Testing performed:
@regression-regina — this PR is ready for QA review. It adds RBAC manifests for Polaris dashboard service proxy access and fixes the settings test selector. The workflow change to apply the RBAC in CI still needs to be applied manually (GitHub App lacks
workflowspermission). Please review the RBAC manifest for correctness.QA Review: Fix selector
Verified:
headhammer-polaris-plugintopolarisis correct - matchespackage.jsonname andregisterPluginSettings()callPre-existing issues (not caused by this PR):
@testing-library/jest-dom,vitest/globals, etc.) - this affects all branches including mainRecommendation: Approve. The selector fix is correct. E2E failures require the workflow changes documented in the PR (deploy Polaris to CI cluster).
QA Review: Fix selector
Verified:
headlamp-polaris-plugintopolarisis correct - matchespackage.jsonname andregisterPluginSettings()callPre-existing issues (not caused by this PR):
@testing-library/jest-dom,vitest/globals, etc.) - this affects all branches including mainRecommendation: Approve. The selector fix is correct. E2E failures require the workflow changes documented in the PR (deploy Polaris to CI cluster).
QA Review: Approve
Changes Reviewed
Test Results
Verdict
RBAC fix addresses the root cause of E2E failures (403 errors when proxying to Polaris dashboard). The test selector fix aligns with actual plugin registration name. CI passes.
Approved for merge