Add a simple set of instructions on running and developing e2e tests for UX dashboard. (#134371)

This commit is contained in:
Justin Kambic 2022-06-14 13:29:48 -04:00 committed by GitHub
parent 1a702ab45f
commit fba72a240a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,14 @@
# Documentation for UX UI developers
https://docs.elastic.dev/kibana-dev-docs/welcome
https://docs.elastic.dev/kibana-dev-docs/welcome
## Running E2E Tests
The tests are managed via the `scripts/e2e.js` file. This script accepts numerous options.
From the kibana root you can run `node x-pack/plugins/ux/scripts/e2e.js` to simply stand up the stack, load data, and run the tests.
If you are developing a new test, it is better to stand up the stack in one shell and load data/run tests in a second session. You can do this by running:
- `node ./x-pack/plugins/ux/scripts/e2e.js --server`
- `node ./x-pack/plugins/ux/scripts/e2e.js --runner`, you can also specify `--grep "{TEST_NAME}"` to run a specific series of tests