Skip to content

Commit

Permalink
[Functional Tests] Unskip tsvb timeseries test (elastic#73011) (elast…
Browse files Browse the repository at this point in the history
…ic#73053)

* [Functional Tests] Unskip tsvb timeseries test

* Add retry to dropdown selection when element is not found to headless mode

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
stratoula and elasticmachine authored Jul 27, 2020
1 parent 8768cdf commit ee2eeb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/functional/apps/visualize/_tsvb_time_series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
expect(actualCount).to.be(expectedLegendValue);
});

it.skip('should show the correct count in the legend with "Human readable" duration formatter', async () => {
it('should show the correct count in the legend with "Human readable" duration formatter', async () => {
await visualBuilder.clickSeriesOption();
await visualBuilder.changeDataFormatter('Duration');
await visualBuilder.setDurationFormatterSettings({ to: 'Human readable' });
Expand Down
6 changes: 4 additions & 2 deletions test/functional/page_objects/visual_builder_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,10 @@ export function VisualBuilderPageProvider({ getService, getPageObjects }: FtrPro
decimalPlaces?: string;
}) {
if (from) {
const fromCombobox = await find.byCssSelector('[id$="from-row"] .euiComboBox');
await comboBox.setElement(fromCombobox, from, { clickWithMouse: true });
await retry.try(async () => {
const fromCombobox = await find.byCssSelector('[id$="from-row"] .euiComboBox');
await comboBox.setElement(fromCombobox, from, { clickWithMouse: true });
});
}
if (to) {
const toCombobox = await find.byCssSelector('[id$="to-row"] .euiComboBox');
Expand Down

0 comments on commit ee2eeb1

Please sign in to comment.