Open jsoriano opened 4 months ago
Pinging @elastic/fleet (Team:Fleet)
@rayafratkina is this something that your time already gave some thoughts on? Automated tests for dashboards.
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
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:
elastic-package test dashboards
) that uses data generation like the one provided byelastic-package benchmark stream
to test the dashboards.The implementation could be incremental, adding features in different areas of testing.
cc @lalit-satapathy