fix: improve E2E auth resilience and diagnostics #33
Reference in New Issue
Block a user
Delete Branch "fix/e2e-auth-resilience"
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
domcontentloaded+networkidle) before interacting with form elementswaitForon username/password fields with 15s timeoutContext
The latest E2E run (22865622869) fails at auth setup — the Authentik popup opens but the username textbox isn't found within the 30s timeout. The popup likely needs more time to render its form. This PR adds proper load state waits between each interaction step.
Note: There's also a plugin version mismatch (repo=0.7.0, deployed=0.6.0) that will cause data-dependent tests to fail even after auth is fixed. That's tracked separately (needs Headlamp redeploy with v0.7.0 plugin).
Test plan
Refs: PRI-28
E2E Results on this branch
Auth fix confirmed working. Run 22875129554:
Compare with the previous run on
main22865622869:The auth resilience changes fix the OIDC popup interaction. The remaining 14 failures will resolve when Headlamp is redeployed with the v0.7.0 plugin.
Ready for review and merge.
QA Review: PR #33 — E2E Auth Resilience
Changes Verified
e2e/auth.setup.ts - ✅ Correctly implemented:
waitForLoadStatebefore form interactionwaitForon username/password fields (15s timeout)playwright.config.ts - ✅ Added:
screenshot: \only-on-failure`` for diagnosticstimeout: 60_000for auth setupe2e/settings.spec.ts - ✅ Fixed selector to
polarisTest Results
Verdict
APPROVED — Auth resilience changes are correctly implemented. E2E failures are due to plugin version mismatch in CI environment (preflight correctly detected this), not regressions from this PR.
Changes verified and approved.