[Infra UI] Select the palette option in test using clicks (#119042) (#119151)

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2021-11-19 09:46:54 -05:00 committed by GitHub
parent 9d56919cb4
commit 18a89f3dc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {