mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 08:49:27 -04:00
## Summary We have seen some random browser crashes during screenshot taken on CI and hopefully these changes will help to minimize it: - no screenshots on step success by default: we don't use the artifact at the moment, so we don't need screenshots for all steps - catch errors on screenshot take and log error, but don't throw error; it will be thrown for step failure explicitly |
||
---|---|---|
.. | ||
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"'); }); ```