use more robust way of entering value (#116566) (#117273)

This commit is contained in:
Joe Reuter 2021-11-03 13:03:16 +01:00 committed by GitHub
parent d0194b79e6
commit 771fb8a3d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View file

@ -193,8 +193,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});
// FLAKY: https://github.com/elastic/kibana/issues/115529
describe.skip('Elastic charts', () => {
describe('Elastic charts', () => {
beforeEach(async () => {
await visualBuilder.toggleNewChartsLibraryWithDebug(true);
await visualBuilder.clickPanelOptions('timeSeries');

View file

@ -664,7 +664,10 @@ export class VisualBuilderPageObject extends FtrService {
public async setBackgroundColor(colorHex: string): Promise<void> {
await this.clickColorPicker();
await this.checkColorPickerPopUpIsPresent();
await this.find.setValue('.euiColorPicker input', colorHex);
await this.testSubjects.setValue('euiColorPickerInput_top', colorHex, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.clickColorPicker();
await this.visChart.waitForVisualizationRenderingStabilized();
}
@ -677,7 +680,10 @@ export class VisualBuilderPageObject extends FtrService {
public async setColorPickerValue(colorHex: string, nth: number = 0): Promise<void> {
await this.clickColorPicker(nth);
await this.checkColorPickerPopUpIsPresent();
await this.find.setValue('.euiColorPicker input', colorHex);
await this.testSubjects.setValue('euiColorPickerInput_top', colorHex, {
clearWithKeyboard: true,
typeCharByChar: true,
});
await this.clickColorPicker(nth);
await this.visChart.waitForVisualizationRenderingStabilized();
}