elastic / elastic-package

elastic-package - Command line tool for developing Elastic Integrations
Other
44 stars 109 forks source link

Add automated tests with dashboards #1705

Open jsoriano opened 4 months ago

jsoriano commented 4 months ago

Currently the only tests we have with dashboards check that they can be installed during assets tests. Having functional tests would allow us to check that the dashboards actually work, and to have additional checks on the data collected.

We need to find a way to check that the data collected is relevant for dashboards, and that dashboards have enough data to render correctly.

Some ideas to explore:

The implementation could be incremental, adding features in different areas of testing.

cc @lalit-satapathy

elasticmachine commented 3 months ago

Pinging @elastic/fleet (Team:Fleet)

jlind23 commented 3 months ago

@rayafratkina is this something that your time already gave some thoughts on? Automated tests for dashboards.

drewdaemon commented 3 weeks ago

Linking to a PoC which adds an API that extracts the Elasticsearch queries from dashboards: https://github.com/elastic/kibana/pull/173416

If this were to be shipped to production in Kibana, the test runner could extract the Elasticsearch queries from integration dashboards and use them to run assertions.

Issue to track: https://github.com/elastic/kibana/issues/175487