Skip to content

Commit

Permalink
use more robust way of entering value (#116566)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Nov 3, 2021
1 parent c84d20b commit 2ba7cdc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions test/functional/apps/visualize/_tsvb_time_series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
10 changes: 8 additions & 2 deletions test/functional/page_objects/visual_builder_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}
Expand Down

0 comments on commit 2ba7cdc

Please sign in to comment.