mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
## Summary Adding extra wait time and check for chart rendering only after the page is loaded (relying on Chart switch popover) I would like to merge it before #166808 so we can check metrics stability before actual merge. Note: it looks like a product flakiness rather than test. Flaky test runner stats before: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3258 16/50 failed after: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3261 100/100 passed |
||
---|---|---|
.. | ||
journey | ||
services | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.mdx | ||
tsconfig.json |
--- id: kibDevDocsOpsJourneys slug: /kibana-dev-docs/ops/journeys title: Journeys description: A new style of functional test, focused on performance testing for now tags: ['kibana', 'dev', 'contributor', 'operations', 'performance', 'functional', 'testing'] --- Journeys are a slightly newer take on Functional Tests, currently powered by [playwright](https://playwright.dev/docs). A Journey is a single pathway through Kibana and looks something like this: ```ts import { Journey } from '@kbn/journeys'; import { subj } from '@kbn/test-subj-selector'; export const journey = new Journey({ esArchives: [ ... ], kbnArchives: [ ... ], scalabilitySetup: { ... }, }) .step('Go to Discover Page', async ({ page, kbnUrl }) => { await page.goto(kbnUrl.get(`/app/discover`)); await page.waitForSelector(subj('discoverDocTable')); }) .step('Expand the first document', async ({ page }) => { const expandButtons = page.locator(subj('docTableExpandToggleColumn')); await expandButtons.first().click(); await page.locator('text="Expanded document"'); }); ```