kibana/x-pack/plugins/screenshotting
Jean-Louis Leysens 5ebb74e575
[Screenshotting] Fix potential race condition when screenshotting (#123820) (#125055)
* extract message from error objects

* only warn for 400 and up status codes

* naively wait for vis ready after resizing the browser viewport

* use a single default viewport size, enable layout to set default page viewport for every page that is created

* refactor viewport -> windowSize in chromium args

* allow overriding defaults and use new windowSize arg for chromium args

* always round page dimension numbers. note: this will break if we ever have a "undefined" set as a key value

* added comment

* update snapshot to new width value

* make defaultViewport a required field on createPage

* added comment

* style: use async-await rather than .then chaining. also added a comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit b2b60ff061)
2022-02-09 05:12:59 -07:00
..
common [Reporting] Decouple screenshotting plugin from the reporting (#120110) (#120937) 2021-12-09 09:49:57 -07:00
public [Reporting] Decouple screenshotting plugin from the reporting (#120110) (#120937) 2021-12-09 09:49:57 -07:00
server [Screenshotting] Fix potential race condition when screenshotting (#123820) (#125055) 2022-02-09 05:12:59 -07:00
jest.config.js [Reporting] Decouple screenshotting plugin from the reporting (#120110) (#120937) 2021-12-09 09:49:57 -07:00
kibana.json [Reporting] Decouple screenshotting plugin from the reporting (#120110) (#120937) 2021-12-09 09:49:57 -07:00
README.md [Reporting] Decouple screenshotting plugin from the reporting (#120110) (#120937) 2021-12-09 09:49:57 -07:00
tsconfig.json [Reporting] Decouple screenshotting plugin from the reporting (#120110) (#120937) 2021-12-09 09:49:57 -07:00

Kibana Screenshotting

This plugin provides functionality to take screenshots of the Kibana pages. It uses Chromium and Puppeteer underneath to run the browser in headless mode.

API

The plugin exposes most of the functionality in the start contract. The Chromium download and setup is happening during the setup stage.

To learn more about the public API, please use automatically generated API reference or generated TypeDoc comments.