Skip to content

Commit

Permalink
Lens tests: heatmap fix (#119010)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored and dmlemeshko committed Nov 29, 2021
1 parent 0512641 commit 1080f6a
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 @@ -872,7 +872,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 1080f6a

Please sign in to comment.