mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Lens] Fix click retry (#132605)
* fix retry * give more time before retryin * fix bug * only try to click empty dimension if it did not open in the meantime * try another thing * try another thing * fix
This commit is contained in:
parent
1d0e3e72b4
commit
f1d3127011
1 changed files with 4 additions and 2 deletions
|
@ -125,8 +125,10 @@ export function LensPageProvider({ getService, getPageObjects }: FtrProviderCont
|
|||
layerIndex = 0
|
||||
) {
|
||||
await retry.try(async () => {
|
||||
await testSubjects.click(`lns-layerPanel-${layerIndex} > ${opts.dimension}`);
|
||||
await testSubjects.exists(`lns-indexPatternDimension-${opts.operation}`);
|
||||
if (!(await testSubjects.exists('lns-indexPattern-dimensionContainerClose'))) {
|
||||
await testSubjects.click(`lns-layerPanel-${layerIndex} > ${opts.dimension}`);
|
||||
}
|
||||
await testSubjects.existOrFail('lns-indexPattern-dimensionContainerClose');
|
||||
});
|
||||
|
||||
if (opts.operation === 'formula') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue