mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[test] Await retry.waitFor (#90456)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
parent
a9fce985a5
commit
be725cabc2
2 changed files with 5 additions and 3 deletions
|
@ -85,7 +85,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
await PageObjects.console.dismissTutorial();
|
||||
expect(await PageObjects.console.hasAutocompleter()).to.be(false);
|
||||
await PageObjects.console.promptAutocomplete();
|
||||
retry.waitFor('autocomplete to be visible', () => PageObjects.console.hasAutocompleter());
|
||||
await retry.waitFor('autocomplete to be visible', () =>
|
||||
PageObjects.console.hasAutocompleter()
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ export function UpgradeAssistantPageProvider({ getPageObjects, getService }: Ftr
|
|||
return await retry.try(async () => {
|
||||
await common.navigateToApp('settings');
|
||||
await testSubjects.click('upgrade_assistant');
|
||||
retry.waitFor('url to contain /upgrade_assistant', async () => {
|
||||
await retry.waitFor('url to contain /upgrade_assistant', async () => {
|
||||
const url = await browser.getCurrentUrl();
|
||||
return url.includes('/upgrade_assistant');
|
||||
});
|
||||
|
@ -61,7 +61,7 @@ export function UpgradeAssistantPageProvider({ getPageObjects, getService }: Ftr
|
|||
|
||||
async waitForTelemetryHidden() {
|
||||
const self = this;
|
||||
retry.waitFor('Telemetry to disappear.', async () => {
|
||||
await retry.waitFor('Telemetry to disappear.', async () => {
|
||||
return (await self.isTelemetryExists()) === false;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue