Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ cypress-a11y-report.json
/frontend/**/yarn-error.log
/frontend/**/dist
/frontend/@types/console/generated
/frontend/e2e/.auth/
/frontend/e2e/.test-config.json
/frontend/test-results/
/frontend/playwright-report/
/frontend/gui_test_screenshots
/frontend/package-lock.json
/frontend/po-files
Expand Down
1 change: 1 addition & 0 deletions frontend/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Godeps
dynamic-demo-plugin
.eslintrc.js
tsconfig.json
e2e/tsconfig.json
12 changes: 12 additions & 0 deletions frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,18 @@ module.exports = {
version: 'detect',
},
},
overrides: [
{
files: ['e2e/**/*.ts'],
parserOptions: {
project: './e2e/tsconfig.json',
},
rules: {
'no-console': 'off',
'no-empty-pattern': 'off',
},
},
],
globals: {
process: 'readonly',
React: true,
Expand Down
37 changes: 37 additions & 0 deletions frontend/e2e/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# OpenShift Console Playwright E2E Configuration
# Copy to .env and fill in values for your environment.

# Console URL to test against (default: http://localhost:9000)
# Separate from BRIDGE_BASE_ADDRESS so you can be oc-login'd to a cluster
# while testing against localhost.
WEB_CONSOLE_URL=http://localhost:9000

# K8s API server URL (only needed if no kubeconfig is available)
# When you oc login, the kubeconfig already has the cluster URL.
# CLUSTER_URL=https://api.mycluster.example.com:6443

# Username for cluster authentication (default: kubeadmin)
# OPENSHIFT_USERNAME=kubeadmin

# Required for browser login on remote clusters
BRIDGE_KUBEADMIN_PASSWORD=

# Optional: htpasswd identity provider for developer user tests
# BRIDGE_HTPASSWD_IDP=my_htpasswd_provider
# BRIDGE_HTPASSWD_USERNAME=testuser
# BRIDGE_HTPASSWD_PASSWORD=

# Optional: path to kubeconfig (defaults to ~/.kube/config)
# KUBECONFIG=

# Optional: number of parallel workers (default: auto locally, 1 in CI)
# WORKERS=4

# Optional: skip global setup (reuse existing .auth/ files)
# SKIP_GLOBAL_SETUP=true

# Optional: skip resource cleanup after tests
# SKIP_TEST_CLEANUP=true

# Optional: debug mode (skip cleanup, keep artifacts, enable video)
# DEBUG=1
Loading