mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Discover] Fix flaky adhoc test when removing a field (#150419)
Closes https://github.com/elastic/kibana/issues/142721 Closes https://github.com/elastic/kibana/issues/150271 100x https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1873
This commit is contained in:
parent
13d1f398ff
commit
9119a00a60
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue