kibana/test/analytics/tests
Gerard Soldevila feee02bb69
Upgrade tests to support the 1st event being the "available" (#171216)
## Summary

Address https://github.com/elastic/kibana/issues/171164

The tests were assuming that the first event emitted is always
`"degraded"`.
After merging https://github.com/elastic/kibana/pull/171012 this might
no longer be the case, aka the first event might already have an
`"available"` status and we might have no more events in that case.

This PR takes this enhancement into account and makes the test more
robust:
* Checking that an `"initializing"` event comes through first.
* Checking that we eventually get an `"available"` event.

---

Flaky Test Runner Pipeline - 100x 🟢 
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3981
2023-11-15 08:01:11 +01:00
..
instrumented_events Upgrade tests to support the 1st event being the "available" (#171216) 2023-11-15 08:01:11 +01:00
analytics_from_the_browser.ts Removes deprecated <IHttpFetchError.res>, <IHttpFetchError.req> (#147727) 2022-12-27 10:55:21 -07:00
analytics_from_the_server.ts [EBT] Dashboard data loaded event (#134243) 2022-07-12 15:17:17 +03:00
index.ts Create @elastic/analytics package (#128407) 2022-04-05 08:21:57 -07:00