Julia Rechkunova 2023-02-07 15:18:53 +01:00 committed by GitHub
parent 13d1f398ff
commit 9119a00a60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -406,7 +406,9 @@ export class DiscoverPageObject extends FtrService {
public async removeField(field: string) {
await this.clickFieldListItem(field);
await this.testSubjects.click(`discoverFieldListPanelDelete-${field}`);
await this.testSubjects.existOrFail('runtimeFieldDeleteConfirmModal');
await this.retry.waitFor('modal to open', async () => {
return await this.testSubjects.exists('runtimeFieldDeleteConfirmModal');
});
await this.fieldEditor.confirmDelete();
}