51b174e68d
Add comprehensive Playwright E2E testing documentation and additional test coverage for app bar badge and plugin settings functionality. Changes: - Add GitHub Actions workflow for E2E tests (.github/workflows/e2e.yaml) - Create .env.example for local test configuration - Update .gitignore to exclude .env files - Enhance e2e/README.md with: - Detailed test coverage documentation - Cluster requirements and prerequisites - Debugging guides and troubleshooting tips - CI/CD integration instructions for GitHub Actions - Best practices and examples for writing new tests - Add e2e/settings.spec.ts: - Test plugin settings page visibility - Test refresh interval configuration - Test dashboard URL configuration - Test connection test button - Add e2e/appbar.spec.ts: - Test badge displays cluster score - Test badge navigation to overview - Test badge color reflects score level - Test badge updates across clusters Test Results (v0.3.4): - 5/16 tests passing (sidebar, namespaces, drawer functionality) - 11/16 failing due to missing v0.3.4 features (settings, app bar badge) - Tests will pass once plugin is updated to v0.3.4 in cluster The E2E test suite now provides comprehensive coverage of: - Plugin registration and loading - Navigation and routing - Settings configuration - App bar integration - Dark mode support - Data fetching and rendering Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
14 lines
350 B
Bash
14 lines
350 B
Bash
# Headlamp E2E Test Configuration
|
|
|
|
# Headlamp instance URL
|
|
HEADLAMP_URL=https://headlamp.animaniacs.farh.net
|
|
|
|
# Authentication: Choose ONE of the following methods
|
|
|
|
# Option 1: OIDC Authentication (Authentik)
|
|
# AUTHENTIK_USERNAME=your-username
|
|
# AUTHENTIK_PASSWORD=your-password
|
|
|
|
# Option 2: Token Authentication
|
|
# HEADLAMP_TOKEN=your-headlamp-token
|