mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Stabilize Discover sidebar tests (#190405)
## Summary This PR tries to stabilize the Discover sidebar tests which started to be flaky when running against MKI. ### Details The serverless Discover sidebar tests (`Common Group 5.x-pack/test_serverless/functional/test_suites/common/discover/group6/_sidebar·ts`) started to become flaky when running against MKI. 5 out of the last 10 runs failed for the same reason: ``` discover/group6 discover sidebar renders field groups should render even when retrieving documents failed with an error Error: expected '48 available fields. 6 empty fields. 4 meta fields.' to equal '49 available fields. 5 empty fields. 4 meta fields.' at Assertion.assert (expect.js💯11) at Assertion.apply (expect.js:227:8) at Assertion.be (expect.js:69:22) at Context. (_sidebar.ts:644:83) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.apply (wrap_function.js:73:16) ``` So it seems the newly added field is sometimes listed as `empty` instead of `available`. Failure screenshot:  The screenshot shows an active global loading indicator, so that might be the reason for the flakiness (loading not quite done sometimes, so field listed as `empty`). This PR tries to fix this flakiness by adding a wait for the global loading right before fetching the sidebar details.
This commit is contained in:
parent
1dd0c8d353
commit
bd5927fab4
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ export class UnifiedFieldListPageObject extends FtrService {
|
|||
}
|
||||
|
||||
public async getSidebarAriaDescription(): Promise<string> {
|
||||
await this.header.waitUntilLoadingHasFinished();
|
||||
return (
|
||||
(await (
|
||||
await this.testSubjects.find('fieldListGrouped__ariaDescription')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue