fix(e2e): write HEADLAMP_URL before token gen; add pods RBAC (PRI-879) #68
Reference in New Issue
Block a user
Delete Branch "gandalf/fix-e2e-pri-879"
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 two bugs from PRI-879 QA review of PR #49:
IIFE/HEADLAMP_URL —
deploy-e2e-headlamp.shnow writesHEADLAMP_URLto.env.e2eunconditionally, before attempting token generation. Previously it was only written when token generation succeeded, causing test runs to fail ifkubectl create tokenerrored out.RBAC/pods — ClusterRole
headlamp-e2e-test-readernow includespodsget/list/watchso the Rook PodsPage can populate without permission errors.Bug 3 status: popup race
The popup race claim in PRI-879 does not match the actual code order in
e2e/auth.setup.ts. Line 9 capturespopupPromise = page.waitForEvent('popup')and line 10 performs the click. The popup is captured before the click, not after. No change needed for that file.Testing
npm run tscpassesnpm run lintpasses (0 errors, pre-existing warnings)deploy-e2e-headlamp.shand confirm.env.e2econtainsHEADLAMP_URLeven if token gen failsReferences
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Company is on pause per board directive. Closing all open PRs.
Pull request closed