wait for index pattern button to be enabled (#93677)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Lee Drengenberg 2021-03-05 15:30:36 -06:00 committed by GitHub
parent a79ebbe613
commit ad5a7a528a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -334,8 +334,13 @@ export function SettingsPageProvider({ getService, getPageObjects }: FtrProvider
await retry.try(async () => {
await this.setIndexPatternField(indexPatternName);
});
await PageObjects.common.sleep(2000);
await (await this.getCreateIndexPatternGoToStep2Button()).click();
const btn = await this.getCreateIndexPatternGoToStep2Button();
await retry.waitFor(`index pattern Go To Step 2 button to be enabled`, async () => {
return await btn.isEnabled();
});
await btn.click();
await PageObjects.common.sleep(2000);
if (timefield) {
await this.selectTimeFieldOption(timefield);