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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Lee Drengenberg <lee.drengenberg@elastic.co>
This commit is contained in:
Kibana Machine 2021-03-05 18:45:24 -05:00 committed by GitHub
parent c0c9c4184a
commit 4d37b10544
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);