Skip to content

Commit

Permalink
[Discover] Fix flaky runtime field test (#147006)
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta authored Dec 6, 2022
1 parent 6df9aca commit 0d2c7e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/page_objects/discover_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,14 +397,14 @@ export class DiscoverPageObject extends FtrService {

public async editField(field: string) {
await this.retry.try(async () => {
await this.testSubjects.click(`field-${field}`);
await this.clickFieldListItem(field);
await this.testSubjects.click(`discoverFieldListPanelEdit-${field}`);
await this.find.byClassName('indexPatternFieldEditor__form');
});
}

public async removeField(field: string) {
await this.testSubjects.click(`field-${field}`);
await this.clickFieldListItem(field);
await this.testSubjects.click(`discoverFieldListPanelDelete-${field}`);
await this.testSubjects.existOrFail('runtimeFieldDeleteConfirmModal');
await this.fieldEditor.confirmDelete();
Expand Down

0 comments on commit 0d2c7e5

Please sign in to comment.