Skip to content

Commit

Permalink
Update e2e documentation and add note about a11y checks (#126675)
Browse files Browse the repository at this point in the history
* Update e2e documentation and add note about a11y checks

* fix typo
  • Loading branch information
MiriamAparicio authored Mar 3, 2022
1 parent 2880a75 commit c302779
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions x-pack/plugins/apm/dev_docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ Once the tests finish, the instances will be terminated.
```
node scripts/test/api --server
```

Start Elasticsearch and Kibana instances.

### Run all tests

```
node scripts/test/api --runner
```

Run all tests. The test server needs to be running, see [Start Test Server](#start-test-server).

### Update snapshots (from Kibana root)
Expand All @@ -53,6 +55,7 @@ To update snapshots append `--updateSnapshots` to the `functional_test_runner` c
```
node scripts/functional_test_runner --config x-pack/test/apm_api_integration/[basic | trial]/config.ts --quiet --updateSnapshots
```

The test server needs to be running, see [Start Test Server](#start-test-server).

The API tests are located in [`x-pack/test/apm_api_integration/`](/x-pack/test/apm_api_integration/).
Expand All @@ -66,11 +69,23 @@ The API tests are located in [`x-pack/test/apm_api_integration/`](/x-pack/test/a

## E2E Tests (Cypress)

The E2E tests are located in [`x-pack/plugins/apm/ftr_e2e`](../ftr_e2e)

### Start test server

```
node scripts/test/e2e [--trial] [--help]
node x-pack/plugins/apm/scripts/test/e2e.js --server
```

The E2E tests are located in [`x-pack/plugins/apm/ftr_e2e`](../ftr_e2e)
### Run tests

```
node x-pack/plugins/apm/scripts/test/e2e.js --open
```

### A11y checks

Accessibility tests are added on the e2e with `checkA11y()`, they will run together with cypress.

---

Expand Down

0 comments on commit c302779

Please sign in to comment.