kibana/x-pack/test/functional/apps/ml/anomaly_detection_integrations
Alex Szabo 51df0599aa
[CI] Fix flaky anomaly detection functional test (#190673)
## Summary
There are several cases where anomaly detection tests fail (find below).
The error claims an unhandled promise rejection through a stale element.
It could be simply a check or an operation that happens after the
browser driver moves on to another test.

I originally wanted to find the tests that seem to fail, but the nature
of the failures (unhandled rejections) line up nicely with missed
`await`s - I've also added a supposed fix, verified with 50x flaky runs.

Errors:
-
https://buildkite.com/elastic/kibana-on-merge/builds/49005#01916999-a25b-4c59-8d91-99cf4b83981b
  - https://buildkite.com/elastic/kibana-on-merge/builds/49004
-
https://buildkite.com/elastic/kibana-elasticsearch-snapshot-verify/builds/4373
  - https://buildkite.com/elastic/kibana-on-merge/builds/49002
  - ...
2024-08-19 06:57:53 -05:00
..
anomaly_charts_dashboard_embeddables.ts [ML][Embeddables Rebuild] Migrate Anomaly Chart (#183456) 2024-05-26 21:32:40 -05:00
anomaly_embeddables_migration.ts [ML] Rename index pattern references to data view. (#171627) 2023-11-23 08:17:26 +01:00
config.ts
constants.ts [ML] Single metric viewer in dashboards: adds functional test (#178768) 2024-03-18 13:13:45 -06:00
index.ts [ML] Single metric viewer in dashboards: adds functional test (#178768) 2024-03-18 13:13:45 -06:00
lens_to_ml.ts [Dashboard] Use panel actions service for testing panels (#190102) 2024-08-14 21:47:57 -07:00
lens_to_ml_with_wizard.ts [CI] Fix flaky anomaly detection functional test (#190673) 2024-08-19 06:57:53 -05:00
map_to_ml.ts [Dashboard] Use panel actions service for testing panels (#190102) 2024-08-14 21:47:57 -07:00
single_metric_viewer_dashboard_embeddables.ts [ML] Single metric viewer functional test: add retry to reduce flakiness (#188686) 2024-07-19 11:26:11 -06:00