kibana/packages/kbn-scout
Dzmitry Lemechko 87b2a12480
[scout] add ci pipeline (#202707)
## Summary

Adding basic pipeline to run scout UI tests for stateful and 3
serverless projects. Few tests were skipped for Security project because
esArchives used in tests ingest index that are restricted for default
project roles.

It is an opt-in pipeline to verify kbn/scout changes does not break the
existing tests. It is only for start and we plan to re-work into a
mature pipeline later.

New opt-in
[pipeline](https://buildkite.com/elastic/kibana-pull-request/builds/258589#0193afc4-bbd6-4200-8c5f-a7e4a8073e1d)
was added
<img width="1659" alt="Screenshot 2024-12-10 at 11 31 35"
src="https://github.com/user-attachments/assets/1c19fa46-4e66-4796-ac6d-c2c96c74fa8e">
2024-12-11 12:15:50 +01:00
..
src [scout] add ci pipeline (#202707) 2024-12-11 12:15:50 +01:00
index.ts [scout] add ci pipeline (#202707) 2024-12-11 12:15:50 +01:00
jest.config.js [kbn-scout] initial package implementation (playwright-test POC) (#194006) 2024-11-26 17:33:49 +01:00
kibana.jsonc [kbn-scout] initial package implementation (playwright-test POC) (#194006) 2024-11-26 17:33:49 +01:00
package.json [kbn-scout] initial package implementation (playwright-test POC) (#194006) 2024-11-26 17:33:49 +01:00
README.md [kbn-scout] initial package implementation (playwright-test POC) (#194006) 2024-11-26 17:33:49 +01:00
tsconfig.json [kbn-scout] Custom event-oriented test reporter & persistence (#202906) 2024-12-09 14:34:25 +00:00

@kbn/scout

The package is designed to streamline the setup and execution of Playwright tests for Kibana. It consolidates server management and testing capabilities by wrapping both the Kibana/Elasticsearch server launcher and the Playwright test runner. It includes:

- core test and worker-scoped fixtures for reliable setup across test suites
- page objects combined into the fixture for for core Kibana apps UI interactions
- configurations for seamless test execution in both local and CI environments

This package aims to simplify test setup and enhance modularity, making it easier to create, run, and maintain deployment-agnostic tests, that are located in the plugin they actually test.