Skip to content

Commit

Permalink
[Infra UI] Select the palette option in test using clicks (elastic#11…
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort authored and TinLe committed Nov 20, 2021
1 parent ab302d3 commit caef86a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x-pack/test/functional/page_objects/infra_home_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,12 @@ export function InfraHomePageProvider({ getService, getPageObjects }: FtrProvide
},

async changePalette(paletteId: string) {
await testSubjects.find('legendControlsPalette');
await testSubjects.selectValue('legendControlsPalette', paletteId);
const paletteSelector = await testSubjects.find('legendControlsPalette');
await paletteSelector.click();
const paletteSelectorEntry = await paletteSelector.findByCssSelector(
`option[value=${paletteId}]`
);
await paletteSelectorEntry.click();
},

async applyLegendControls() {
Expand Down

0 comments on commit caef86a

Please sign in to comment.