mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Awaiting element.isEnabled for staleness checks (#28106)
The functional test runner's find service wasn't awaiting the promises returned by element.isEnabled which was causing some of the staleness checks to not succeed and potentially crash the process if it was the very last test to be run.
This commit is contained in:
parent
404790d459
commit
1861be716a
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ export function FindProvider({ getService }) {
|
|||
return await retry.try(async () => {
|
||||
const element = await getElementFunction();
|
||||
// Calling any method forces a staleness check
|
||||
element.isEnabled();
|
||||
await element.isEnabled();
|
||||
return element;
|
||||
});
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ export function FindProvider({ getService }) {
|
|||
return await retry.try(async () => {
|
||||
const element = await getElementFunction(leadfootWithTimeout);
|
||||
// Calling any method forces a staleness check
|
||||
element.isEnabled();
|
||||
await element.isEnabled();
|
||||
return element;
|
||||
});
|
||||
} finally {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue