x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/README.md
These tests are part of the Nightly CI workflow and do not run on PRs.
Playwright tests are only responsible for UI checks and do not automate onboarding flows fully. On the CI, the missing parts (like executing code snippets on the host) are automated by Ensemble stories, but when running locally you need to do those steps manually.
.env file in the ./x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/ directory with the following content (adjust the values according to your local setup):KIBANA_BASE_URL = "http://localhost:5601"
ELASTICSEARCH_HOST = "http://localhost:9200"
KIBANA_USERNAME = "elastic"
KIBANA_PASSWORD = "changeme"
CLUSTER_ENVIRONMENT = local
ARTIFACTS_FOLDER = ./.playwright
# OS_NAME = darwin # Optional for testing macOS OTel host flow
playwright test# Assuming the working directory is the root of the Kibana repo
npx playwright test -c ./x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/playwright.config.ts --project stateful --reporter list --headed
For running a specific test, use the following command
npx playwright test -c ./x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/playwright.config.ts --reporter list --headed x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/stateful/$