kibana/x-pack/plugins/uptime/e2e
Shahzad 1ca19ce2c7
[Synthetics/Uptime] Better code separation (#160245)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-06-26 17:47:04 +02:00
..
fixtures/es_archiver [Synthetics/Uptime] Better code separation (#160245) 2023-06-26 17:47:04 +02:00
helpers [Synthetics/Uptime] Better code separation (#160245) 2023-06-26 17:47:04 +02:00
page_objects [Synthetics/Uptime] Better code separation (#160245) 2023-06-26 17:47:04 +02:00
tasks [Synthetics/Uptime] Better code separation (#160245) 2023-06-26 17:47:04 +02:00
uptime [Synthetics/Uptime] Better code separation (#160245) 2023-06-26 17:47:04 +02:00
config.ts [Synthetics/Uptime] Better code separation (#160245) 2023-06-26 17:47:04 +02:00
README.md [Synthetics/Uptime] Better code separation (#160245) 2023-06-26 17:47:04 +02:00
tsconfig.json [Synthetics/Uptime] Better code separation (#160245) 2023-06-26 17:47:04 +02:00

How to run these tests

These tests rely on the Kibana functional test runner. There is a Kibana config in this directory, and a dedicated script for standing up the test server.

Start the server

From ~/x-pack/plugins/synthetics/scripts, run node e2e.js --server. Wait for the server to startup. It will provide you with an example run command when it finishes.

Run the tests

From the same directory you can now run node node e2e.js --runner.

In addition to the usual flags like --grep, you can also specify --no-headless in order to view your tests as you debug/develop.

Uptime App Tests

These tests rely on the Kibana functional test runner. There is a Kibana config in this directory, and a dedicated script for standing up the test server.

Start the server

From ~/x-pack/plugins/synthetics/scripts, run node uptime_e2e.js --server. Wait for the server to startup. It will provide you with an example run command when it finishes.

Run the tests

From the same directory you can now run node node uptime_e2e.js --runner.

In addition to the usual flags like --grep, you can also specify --no-headless in order to view your tests as you debug/develop.