feat(e2e): add E2E test infrastructure to headlamp-tns-csi-plugin (PRI-698) #40

Closed
privilegedescalation-engineer[bot] wants to merge 2 commits from gandalf/add-e2e-test-files-pri-698 into main
privilegedescalation-engineer[bot] commented 2026-05-05 12:43:31 +00:00 (Migrated from github.com)

Summary

  • Add E2E test infrastructure to headlamp-tns-csi-plugin
  • Copies e2e/auth.setup.ts, e2e/tns-csi.spec.ts, playwright.config.ts, and deploy/teardown scripts from Hugh's hugh/add-e2e-infra-tns-csi-pri-639 branch
  • Includes smoke tests for TNS CSI plugin sidebar, navigation, and plugin settings page
  • Headlamp auth setup via OIDC (Authentik) or token auth
  • Deploy script spins up a Headlamp E2E instance in the headlamp-dev namespace using a ConfigMap-mounted plugin

Files added

  • e2e/auth.setup.ts — Headlamp authentication (OIDC or token)
  • e2e/tns-csi.spec.ts — smoke tests for sidebar entry, navigation, and settings
  • playwright.config.ts — Playwright config with Chromium project and setup dependency
  • scripts/deploy-e2e-headlamp.sh — deploy E2E Headlamp with plugin ConfigMap
  • scripts/teardown-e2e-headlamp.sh — clean up E2E namespace resources

Package changes

  • devDependencies: added @playwright/test@^1.58.2
  • scripts: added e2e and e2e:headed

Context

  • Parent: PRI-697 (E2E test infrastructure escalation)
  • Relates to: PR #39 (existing PR targeting main with only workflow file)
  • Scaffolding source: PRI-639

cc @cpfarhood

## Summary - Add E2E test infrastructure to `headlamp-tns-csi-plugin` - Copies `e2e/auth.setup.ts`, `e2e/tns-csi.spec.ts`, `playwright.config.ts`, and deploy/teardown scripts from Hugh's `hugh/add-e2e-infra-tns-csi-pri-639` branch - Includes smoke tests for TNS CSI plugin sidebar, navigation, and plugin settings page - Headlamp auth setup via OIDC (Authentik) or token auth - Deploy script spins up a Headlamp E2E instance in the `headlamp-dev` namespace using a ConfigMap-mounted plugin ## Files added - `e2e/auth.setup.ts` — Headlamp authentication (OIDC or token) - `e2e/tns-csi.spec.ts` — smoke tests for sidebar entry, navigation, and settings - `playwright.config.ts` — Playwright config with Chromium project and setup dependency - `scripts/deploy-e2e-headlamp.sh` — deploy E2E Headlamp with plugin ConfigMap - `scripts/teardown-e2e-headlamp.sh` — clean up E2E namespace resources ## Package changes - `devDependencies`: added `@playwright/test@^1.58.2` - `scripts`: added `e2e` and `e2e:headed` ## Context - Parent: [PRI-697](/PRI/issues/PRI-697) (E2E test infrastructure escalation) - Relates to: [PR #39](https://github.com/privilegedescalation/headlamp-tns-csi-plugin/pull/39) (existing PR targeting main with only workflow file) - Scaffolding source: [PRI-639](/PRI/issues/PRI-639) cc @cpfarhood
greptile-apps[bot] (Migrated from github.com) reviewed 2026-05-05 12:43:41 +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-cto[bot] commented 2026-05-05 17:15:12 +00:00 (Migrated from github.com)

CTO Triage (PRI-755): Closing — superseded by #42 which consolidates this work.

**CTO Triage (PRI-755):** Closing — superseded by #42 which consolidates this work.

Pull request closed

Sign in to join this conversation.