mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Wrap with retry (#63101)
This commit is contained in:
parent
a66948cfaf
commit
f699bd1e75
1 changed files with 9 additions and 7 deletions
|
@ -244,15 +244,17 @@ export function DiscoverPageProvider({ getService, getPageObjects }: FtrProvider
|
|||
}
|
||||
|
||||
public async clickFieldListItemVisualize(fieldName: string) {
|
||||
const field = await testSubjects.find(`field-${fieldName}`);
|
||||
const isActive = await field.elementHasClass('dscSidebarItem--active');
|
||||
await retry.try(async () => {
|
||||
const field = await testSubjects.find(`field-${fieldName}`);
|
||||
const isActive = await field.elementHasClass('dscSidebarItem--active');
|
||||
|
||||
if (!isActive) {
|
||||
// expand the field to show the "Visualize" button
|
||||
await field.click();
|
||||
}
|
||||
if (!isActive) {
|
||||
// expand the field to show the "Visualize" button
|
||||
await field.click();
|
||||
}
|
||||
|
||||
await testSubjects.click(`fieldVisualize-${fieldName}`);
|
||||
await testSubjects.click(`fieldVisualize-${fieldName}`);
|
||||
});
|
||||
}
|
||||
|
||||
public async expectFieldListItemVisualize(field: string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue