mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Discover] Fix flaky sidebar test (#150081)
Closes https://github.com/elastic/kibana/issues/146996 100x https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1852
This commit is contained in:
parent
496e0e8094
commit
a5f7d17694
1 changed files with 9 additions and 0 deletions
|
@ -577,6 +577,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
'_bytes-runtimefield',
|
||||
`emit((doc["bytes"].value * 2).toString())`
|
||||
);
|
||||
|
||||
await retry.waitFor('form to close', async () => {
|
||||
return !(await testSubjects.exists('fieldEditor'));
|
||||
});
|
||||
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await PageObjects.discover.waitUntilSidebarHasLoaded();
|
||||
|
||||
|
@ -592,6 +597,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await fieldEditor.setCustomLabel('_bytes-runtimefield2');
|
||||
await fieldEditor.save();
|
||||
|
||||
await retry.waitFor('form to close', async () => {
|
||||
return !(await testSubjects.exists('fieldEditor'));
|
||||
});
|
||||
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await PageObjects.discover.waitUntilSidebarHasLoaded();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue