Skip to content

Commit

Permalink
Lens tests: heatmap fix (#119010) (#119034)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
  • Loading branch information
kibanamachine and flash1293 committed Nov 18, 2021
1 parent 95025af commit e131f74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export function PalettePanelContainer({
<div
role="dialog"
aria-labelledby="lnsPalettePanelContainerTitle"
data-test-subj="lns-indexPattern-PalettePanelContainer"
className="lnsPalettePanelContainer"
>
<EuiFlyoutHeader hasBorder className="lnsPalettePanelContainer__header">
Expand Down
7 changes: 6 additions & 1 deletion x-pack/test/functional/page_objects/lens_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,12 @@ export function LensPageProvider({ getService, getPageObjects }: FtrProviderCont
},

async openPalettePanel(chartType: string) {
await testSubjects.click(`${chartType}_dynamicColoring_trigger`);
await retry.try(async () => {
await testSubjects.click(`${chartType}_dynamicColoring_trigger`);
// wait for the UI to settle
await PageObjects.common.sleep(100);
await testSubjects.existOrFail('lns-indexPattern-PalettePanelContainer', { timeout: 2500 });
});
},

async closePalettePanel() {
Expand Down

0 comments on commit e131f74

Please sign in to comment.