From 7913a9beb6142beb57bcb232b13d4e4b72b54175 Mon Sep 17 00:00:00 2001 From: Marco Vettorello Date: Wed, 28 Jun 2023 15:42:53 +0200 Subject: [PATCH] fix(test): update legend sorted items --- .../apps/discover/group1/_discover_histogram_breakdown.ts | 2 +- .../replaced_vislib_chart_types/_vertical_bar_chart.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/apps/discover/group1/_discover_histogram_breakdown.ts b/test/functional/apps/discover/group1/_discover_histogram_breakdown.ts index 12343efc268f3..86ec135ab0089 100644 --- a/test/functional/apps/discover/group1/_discover_histogram_breakdown.ts +++ b/test/functional/apps/discover/group1/_discover_histogram_breakdown.ts @@ -55,7 +55,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.discover.loadSavedSearch('with breakdown'); await PageObjects.header.waitUntilLoadingHasFinished(); const list = await PageObjects.discover.getHistogramLegendList(); - expect(list).to.eql(['Other', 'png', 'css', 'jpg']); + expect(list).to.eql(['jpg', 'css', 'png', 'Other']); }); }); } diff --git a/test/functional/apps/visualize/replaced_vislib_chart_types/_vertical_bar_chart.ts b/test/functional/apps/visualize/replaced_vislib_chart_types/_vertical_bar_chart.ts index 3d4fdc3c7b166..12a7f62a2801d 100644 --- a/test/functional/apps/visualize/replaced_vislib_chart_types/_vertical_bar_chart.ts +++ b/test/functional/apps/visualize/replaced_vislib_chart_types/_vertical_bar_chart.ts @@ -309,7 +309,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await PageObjects.visEditor.selectCustomSortMetric(3, 'Min', 'bytes'); await PageObjects.visEditor.clickGo(true); - const expectedEntries = ['200', '404', '503']; + const expectedEntries = ['404', '200', '503']; const legendEntries = await PageObjects.visChart.getLegendEntriesXYCharts(xyChartSelector); expect(legendEntries).to.eql(expectedEntries); });