feat(e2e): consolidate E2E infra + fix flaky storage-classes test (PRI-699) #56

Closed
privilegedescalation-engineer[bot] wants to merge 4 commits from gandalf/e2e-fix into main
privilegedescalation-engineer[bot] commented 2026-05-05 13:05:22 +00:00 (Migrated from github.com)

Summary

Consolidates E2E test infrastructure for headlamp-rook-plugin and fixes two test reliability issues.

What this PR does

  • Adds e2e/auth.setup.ts, e2e/rook.spec.ts, playwright.config.ts, scripts/deploy-e2e-headlamp.sh, scripts/teardown-e2e-headlamp.sh (all from main)
  • Fixes navigation to storage classes view works test: the 'Storage Classes' link is nested under the Rook sidebar button — expands Rook section before asserting link visibility
  • Fixes plugin settings page shows rook plugin entry test: uses case-insensitive /rook/i regex and waits for plugin list to render before searching

Test reliability notes

E2E tests require:

  1. Service account headlamp-e2e-test in headlamp-dev namespace with cluster-scoped permissions for storageclasses, persistentvolumes, persistentvolumeclaims, cephclusters, cephblockpools, cephfilesystems, cephobjectstores (and Rook CRDs)
  2. Valid token via kubectl create token headlamp-e2e-test -n headlamp-dev --duration=1h

These RBAC requirements are tracked in PRI-702.

References

## Summary Consolidates E2E test infrastructure for `headlamp-rook-plugin` and fixes two test reliability issues. ### What this PR does - Adds `e2e/auth.setup.ts`, `e2e/rook.spec.ts`, `playwright.config.ts`, scripts/deploy-e2e-headlamp.sh, scripts/teardown-e2e-headlamp.sh (all from `main`) - Fixes `navigation to storage classes view works` test: the 'Storage Classes' link is nested under the Rook sidebar button — expands Rook section before asserting link visibility - Fixes `plugin settings page shows rook plugin entry` test: uses case-insensitive `/rook/i` regex and waits for plugin list to render before searching ### Test reliability notes E2E tests require: 1. Service account `headlamp-e2e-test` in `headlamp-dev` namespace with cluster-scoped permissions for `storageclasses`, `persistentvolumes`, `persistentvolumeclaims`, `cephclusters`, `cephblockpools`, `cephfilesystems`, `cephobjectstores` (and Rook CRDs) 2. Valid token via `kubectl create token headlamp-e2e-test -n headlamp-dev --duration=1h` These RBAC requirements are tracked in [PRI-702](/PRI/issues/PRI-702). ### References - [PRI-697](/PRI/issues/PRI-697) - [PRI-699](/PRI/issues/PRI-699)
greptile-apps[bot] (Migrated from github.com) reviewed 2026-05-05 13:05:30 +00:00
greptile-apps[bot] (Migrated from github.com) left a comment

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](https://app.greptile.com/review/github).
greptile-apps[bot] (Migrated from github.com) reviewed 2026-05-05 13:56:42 +00:00
greptile-apps[bot] (Migrated from github.com) left a comment

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](https://app.greptile.com/review/github).
greptile-apps[bot] (Migrated from github.com) reviewed 2026-05-05 17:44:06 +00:00
greptile-apps[bot] (Migrated from github.com) left a comment

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](https://app.greptile.com/review/github).
privilegedescalation-engineer[bot] commented 2026-05-05 19:14:06 +00:00 (Migrated from github.com)

Closing — superseded by #61 (canonical E2E consolidation PR). E2E infra changes have been consolidated into a single PR per repo per PRI-779.

Closing — superseded by #61 (canonical E2E consolidation PR). E2E infra changes have been consolidated into a single PR per repo per PRI-779.

Pull request closed

Sign in to join this conversation.