@@ -5,6 +5,12 @@ import { PromOptions } from '@grafana/prometheus';
5
5
6
6
const codeEditorProvFile = 'code-editor.yml' ;
7
7
8
+ test . use ( {
9
+ featureToggles : {
10
+ prometheusUsesCombobox : true ,
11
+ } ,
12
+ } ) ;
13
+
8
14
test . describe ( 'Prometheus query editor' , ( ) => {
9
15
test ( `should have the following components:
10
16
kickstart component
@@ -230,7 +236,9 @@ test.describe('Prometheus query editor', () => {
230
236
explorePage,
231
237
page,
232
238
} ) => {
233
- const ds = await readProvisionedDataSource < DataSourcePluginOptionsEditorProps < PromOptions > > ( { fileName : 'datasources.yml' } ) ;
239
+ const ds = await readProvisionedDataSource < DataSourcePluginOptionsEditorProps < PromOptions > > ( {
240
+ fileName : 'datasources.yml' ,
241
+ } ) ;
234
242
235
243
await explorePage . datasource . set ( ds . name ) ;
236
244
@@ -256,7 +264,9 @@ test.describe('Prometheus query editor', () => {
256
264
explorePage,
257
265
page,
258
266
} ) => {
259
- const ds = await readProvisionedDataSource < DataSourcePluginOptionsEditorProps < PromOptions > > ( { fileName : 'datasources.yml' } ) ;
267
+ const ds = await readProvisionedDataSource < DataSourcePluginOptionsEditorProps < PromOptions > > ( {
268
+ fileName : 'datasources.yml' ,
269
+ } ) ;
260
270
261
271
await explorePage . datasource . set ( ds . name ) ;
262
272
@@ -365,7 +375,9 @@ test.describe('Prometheus query editor', () => {
365
375
readProvisionedDataSource,
366
376
explorePage,
367
377
} ) => {
368
- const ds = await readProvisionedDataSource < DataSourcePluginOptionsEditorProps < PromOptions > > ( { fileName : 'datasources.yml' } ) ;
378
+ const ds = await readProvisionedDataSource < DataSourcePluginOptionsEditorProps < PromOptions > > ( {
379
+ fileName : 'datasources.yml' ,
380
+ } ) ;
369
381
370
382
await explorePage . datasource . set ( ds . name ) ;
371
383
0 commit comments