Create ES|QL performance journey for Discover (#184768)

## Summary

Resolves https://github.com/elastic/kibana/issues/183419.

Adds a performance journey that performs the same tests as the existing
Discovery journey.

To run locally:

```
node scripts/run_performance.js --journey-path x-pack/performance/journeys_e2e/many_fields_discover_esql.ts
```
This commit is contained in:
Lukas Olson 2024-06-11 00:53:42 +02:00 committed by GitHub
parent 940cee5067
commit 7094c8e1d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 36 additions and 0 deletions

View file

@ -455,6 +455,7 @@ enabled:
- x-pack/performance/journeys_e2e/flight_dashboard.ts
- x-pack/performance/journeys_e2e/login.ts
- x-pack/performance/journeys_e2e/many_fields_discover.ts
- x-pack/performance/journeys_e2e/many_fields_discover_esql.ts
- x-pack/performance/journeys_e2e/many_fields_lens_editor.ts
- x-pack/performance/journeys_e2e/many_fields_transform.ts
- x-pack/performance/journeys_e2e/tsdb_logs_data_visualizer.ts

View file

@ -0,0 +1,35 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import { Journey } from '@kbn/journeys';
import { subj } from '@kbn/test-subj-selector';
export const journey = new Journey({
kbnArchives: ['test/functional/fixtures/kbn_archiver/many_fields_data_view'],
esArchives: ['test/functional/fixtures/es_archiver/many_fields'],
})
.step('Go to Discover Page', async ({ page, kbnUrl, kibanaPage }) => {
await page.goto(
kbnUrl.get(
`/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),dataSource:(type:esql),hideChart:!t,interval:auto,query:(esql:'from%20indices-stats*%20%7C%20limit%20500'),sort:!())`
)
);
await kibanaPage.waitForHeader();
await page.waitForSelector('[data-test-subj="discoverDocTable"][data-render-complete="true"]');
await page.waitForSelector(subj('globalLoadingIndicator-hidden'));
})
.step('Expand the first document', async ({ page, kbnUrl }) => {
const expandButtons = page.locator(subj('docTableExpandToggleColumn'));
await expandButtons.first().click();
await page.waitForSelector(subj('kbnDocViewer'));
await page.goto(
kbnUrl.get(
`/app/discover#/doc/35796250-bb09-11ec-a8e4-a9868e049a39/indices-stats?id=Bh6t-H8BbBF9z83A6xeC`
)
);
await page.waitForSelector(subj('globalLoadingIndicator-hidden'));
});