scout-ui-testing

Installation
SKILL.md

Scout UI Testing

Pick the right test mode

  • Sequential UI: <module-root>/test/scout*/ui/tests/**/*.spec.ts.
  • Parallel UI: <module-root>/test/scout*/ui/parallel_tests/**/*.spec.ts and (recommended) use spaceTest + scoutSpace (one Kibana space per worker). If you run with workers > 1 but keep using test, you won't get space isolation.
  • Use the Scout package that matches the module root:
  • src/platform/** or x-pack/platform/** -> @kbn/scout
  • x-pack/solutions/observability/** -> @kbn/scout-oblt
  • x-pack/solutions/search/** -> @kbn/scout-search
  • x-pack/solutions/security/** -> @kbn/scout-security

Imports

  • Test framework + tags: import { tags } from '@kbn/scout'; (or the module's Scout package)
  • Test fixture: import { test } from '../fixtures'; (or import { test } from '@kbn/scout'; when not extending)
  • Assertions: import { expect } from '@kbn/scout/ui'; (or @kbn/scout-oblt/ui, etc.) — not from the main entry
  • expect is not exported from the main @kbn/scout entry. Use the /ui subpath for UI tests.
Related skills
Installs
1
Repository
elastic/kibana
GitHub Stars
21.1K
First Seen
4 days ago