[6.0]fix create_index_pattern_method to handle no timefields (#13852)

This commit is contained in:
Rashmi Kulkarni 2017-09-05 15:22:53 -07:00
parent 1965422d47
commit bcfb14a2dc

View file

@ -292,7 +292,9 @@ export function SettingsPageProvider({ getService, getPageObjects }) {
await this.navigateTo();
await this.clickKibanaIndices();
await this.setIndexPatternField(indexPatternName);
await this.selectTimeFieldOption(timefield);
if (timefield) {
await this.selectTimeFieldOption(timefield);
}
const createButton = await this.getCreateButton();
await createButton.click();
});