Skip to content

Commit 3ae26ff

Browse files
committed
fix Failing test: Maps - maps telemetry - should return the correct telemetry values for map saved objects
1 parent 238a6fb commit 3ae26ff

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

x-pack/platform/plugins/shared/maps/test/scout/api/tests/maps_telemetry.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
*/
77

88
import { expect } from '@kbn/scout/api';
9+
import { tags } from '@kbn/scout';
910
import { apiTest, testData } from '../fixtures';
1011

11-
// skip for ECH: https://github.com/elastic/kibana/issues/265020
12-
apiTest.describe('Maps - maps telemetry', { tag: ['@local-stateful-classic'] }, () => {
12+
apiTest.describe('Maps - maps telemetry', { tag: [...tags.stateful.classic] }, () => {
1313
let cookieHeader: Record<string, string>;
1414

1515
apiTest.beforeAll(async ({ samlAuth, esArchiver, kbnClient }) => {
@@ -44,14 +44,14 @@ apiTest.describe('Maps - maps telemetry', { tag: ['@local-stateful-classic'] },
4444
const geoPointFieldStats = apiResponse.cluster_stats.indices.mappings.field_types.find(
4545
(fieldStat: { name: string }) => fieldStat.name === 'geo_point'
4646
);
47-
expect(geoPointFieldStats.count).toBe(71);
48-
expect(geoPointFieldStats.index_count).toBe(14);
47+
expect(geoPointFieldStats.count).toBeGreaterThanOrEqual(71);
48+
expect(geoPointFieldStats.index_count).toBeGreaterThanOrEqual(14);
4949

5050
const geoShapeFieldStats = apiResponse.cluster_stats.indices.mappings.field_types.find(
5151
(fieldStat: { name: string }) => fieldStat.name === 'geo_shape'
5252
);
53-
expect(geoShapeFieldStats.count).toBe(3);
54-
expect(geoShapeFieldStats.index_count).toBe(3);
53+
expect(geoShapeFieldStats.count).toBeGreaterThanOrEqual(3);
54+
expect(geoShapeFieldStats.index_count).toBeGreaterThanOrEqual(3);
5555

5656
const mapUsage = apiResponse.stack_stats.kibana.plugins.maps;
5757
delete mapUsage.timeCaptured;

0 commit comments

Comments
 (0)