Skip to content

Commit 477280c

Browse files
committed
Added tests for checking of aggregations with not supported field types.
1 parent 43b9a77 commit 477280c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based

x-pack/test/functional/apps/lens/group3/open_in_lens/agg_based/metric.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,16 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
111111
},
112112
]);
113113
});
114+
115+
it('should not convert aggregation with not supported field type', async () => {
116+
await visEditor.clickMetricEditor();
117+
await visEditor.selectAggregation('Top metrics', 'metrics');
118+
await visEditor.selectField('extension.raw', 'metrics');
119+
120+
await visEditor.clickGo();
121+
122+
const button = await testSubjects.exists('visualizeEditInLensButton');
123+
expect(button).to.be(false);
124+
});
114125
});
115126
}

0 commit comments

Comments
 (0)