@grafana/plugin-e2e 0.0.0 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +1 -0
  2. package/dist/api.d.ts +41 -0
  3. package/dist/api.js +15 -0
  4. package/dist/e2e-selectors/index.d.ts +2 -0
  5. package/dist/e2e-selectors/index.js +20 -0
  6. package/dist/e2e-selectors/resolver.d.ts +3 -0
  7. package/dist/e2e-selectors/resolver.js +38 -0
  8. package/dist/e2e-selectors/resolver.test.d.ts +1 -0
  9. package/dist/e2e-selectors/resolver.test.js +39 -0
  10. package/dist/e2e-selectors/types.d.ts +691 -0
  11. package/dist/e2e-selectors/types.js +2 -0
  12. package/dist/e2e-selectors/versioned/apis.d.ts +29 -0
  13. package/dist/e2e-selectors/versioned/apis.js +35 -0
  14. package/dist/e2e-selectors/versioned/components.d.ts +419 -0
  15. package/dist/e2e-selectors/versioned/components.js +426 -0
  16. package/dist/e2e-selectors/versioned/constants.d.ts +1 -0
  17. package/dist/e2e-selectors/versioned/constants.js +4 -0
  18. package/dist/e2e-selectors/versioned/index.d.ts +2 -0
  19. package/dist/e2e-selectors/versioned/index.js +7 -0
  20. package/dist/e2e-selectors/versioned/pages.d.ts +334 -0
  21. package/dist/e2e-selectors/versioned/pages.js +345 -0
  22. package/dist/e2e-selectors/versioned/types.d.ts +8 -0
  23. package/dist/e2e-selectors/versioned/types.js +2 -0
  24. package/dist/fixtures/annotationEditPage.d.ts +7 -0
  25. package/dist/fixtures/annotationEditPage.js +62 -0
  26. package/dist/fixtures/commands/createDataSource.d.ts +8 -0
  27. package/dist/fixtures/commands/createDataSource.js +110 -0
  28. package/dist/fixtures/commands/createDataSourceConfigPage.d.ts +8 -0
  29. package/dist/fixtures/commands/createDataSourceConfigPage.js +82 -0
  30. package/dist/fixtures/commands/login.d.ts +6 -0
  31. package/dist/fixtures/commands/login.js +88 -0
  32. package/dist/fixtures/commands/readProvision.d.ts +7 -0
  33. package/dist/fixtures/commands/readProvision.js +67 -0
  34. package/dist/fixtures/explorePage.d.ts +7 -0
  35. package/dist/fixtures/explorePage.js +59 -0
  36. package/dist/fixtures/grafanaVersion.d.ts +6 -0
  37. package/dist/fixtures/grafanaVersion.js +63 -0
  38. package/dist/fixtures/index.d.ts +14 -0
  39. package/dist/fixtures/index.js +29 -0
  40. package/dist/fixtures/newDashboardPage.d.ts +7 -0
  41. package/dist/fixtures/newDashboardPage.js +59 -0
  42. package/dist/fixtures/panelEditPage.d.ts +7 -0
  43. package/dist/fixtures/panelEditPage.js +56 -0
  44. package/dist/fixtures/selectors.d.ts +7 -0
  45. package/dist/fixtures/selectors.js +62 -0
  46. package/dist/fixtures/types.d.ts +2 -0
  47. package/dist/fixtures/types.js +2 -0
  48. package/dist/fixtures/variableEditPage.d.ts +7 -0
  49. package/dist/fixtures/variableEditPage.js +62 -0
  50. package/dist/index.d.ts +3 -0
  51. package/dist/index.js +22 -0
  52. package/dist/matchers/index.d.ts +20 -0
  53. package/dist/matchers/index.js +13 -0
  54. package/dist/matchers/toBeOK.d.ts +7 -0
  55. package/dist/matchers/toBeOK.js +69 -0
  56. package/dist/matchers/toDisplayPreviews.d.ts +7 -0
  57. package/dist/matchers/toDisplayPreviews.js +70 -0
  58. package/dist/matchers/toHavePanelError.d.ts +9 -0
  59. package/dist/matchers/toHavePanelError.js +74 -0
  60. package/dist/matchers/utils.d.ts +1 -0
  61. package/dist/matchers/utils.js +5 -0
  62. package/dist/models/AnnotationEditPage.d.ts +8 -0
  63. package/dist/models/AnnotationEditPage.js +82 -0
  64. package/dist/models/AnnotationPage.d.ts +8 -0
  65. package/dist/models/AnnotationPage.js +123 -0
  66. package/dist/models/DashboardPage.d.ts +15 -0
  67. package/dist/models/DashboardPage.js +163 -0
  68. package/dist/models/DataSourceConfigPage.d.ts +10 -0
  69. package/dist/models/DataSourceConfigPage.js +135 -0
  70. package/dist/models/DataSourcePicker.d.ts +6 -0
  71. package/dist/models/DataSourcePicker.js +86 -0
  72. package/dist/models/ExplorePage.d.ts +12 -0
  73. package/dist/models/ExplorePage.js +130 -0
  74. package/dist/models/GrafanaPage.d.ts +11 -0
  75. package/dist/models/GrafanaPage.js +150 -0
  76. package/dist/models/PanelEditPage.d.ts +15 -0
  77. package/dist/models/PanelEditPage.js +165 -0
  78. package/dist/models/TimeRange.d.ts +6 -0
  79. package/dist/models/TimeRange.js +119 -0
  80. package/dist/models/VariableEditPage.d.ts +10 -0
  81. package/dist/models/VariableEditPage.js +109 -0
  82. package/dist/models/VariablePage.d.ts +8 -0
  83. package/dist/models/VariablePage.js +107 -0
  84. package/dist/models/index.d.ts +8 -0
  85. package/dist/models/index.js +19 -0
  86. package/dist/selectorEngine.d.ts +4 -0
  87. package/dist/selectorEngine.js +18 -0
  88. package/dist/types.d.ts +54 -0
  89. package/dist/types.js +2 -0
  90. package/package.json +4 -4
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var _a, _b, _c, _d, _e, _f, _g;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.versionedAPIs = void 0;
5
+ var constants_1 = require("./constants");
6
+ exports.versionedAPIs = {
7
+ DataSource: {
8
+ resourcePattern: (_a = {},
9
+ _a[constants_1.MIN_GRAFANA_VERSION] = '/api/datasources/*/resources',
10
+ _a),
11
+ resourceUIDPattern: (_b = {
12
+ '9.4.4': '/api/datasources/uid/*/resources'
13
+ },
14
+ _b[constants_1.MIN_GRAFANA_VERSION] = '/api/datasources/*/resources',
15
+ _b),
16
+ queryPattern: (_c = {},
17
+ _c[constants_1.MIN_GRAFANA_VERSION] = '*/**/api/ds/query*',
18
+ _c),
19
+ query: (_d = {},
20
+ _d[constants_1.MIN_GRAFANA_VERSION] = '/api/ds/query',
21
+ _d),
22
+ health: (_e = {},
23
+ _e['9.5.0'] = function (uid, _) { return "/api/datasources/uid/".concat(uid, "/health"); },
24
+ _e[constants_1.MIN_GRAFANA_VERSION] = function (_, id) { return "/api/datasources/".concat(id, "/health"); },
25
+ _e),
26
+ delete: (_f = {},
27
+ _f[constants_1.MIN_GRAFANA_VERSION] = function (uid) { return "/api/datasources/uid/".concat(uid); },
28
+ _f),
29
+ },
30
+ Dashboard: {
31
+ delete: (_g = {},
32
+ _g[constants_1.MIN_GRAFANA_VERSION] = function (uid) { return "/api/datasources/uid/".concat(uid); },
33
+ _g),
34
+ },
35
+ };
@@ -0,0 +1,419 @@
1
+ export declare const versionedComponents: {
2
+ Breadcrumbs: {
3
+ breadcrumb: {
4
+ '9.4.0': (title: string) => string;
5
+ };
6
+ };
7
+ TimePicker: {
8
+ openButton: {
9
+ '8.1.0': string;
10
+ "8.0.0": string;
11
+ };
12
+ fromField: string;
13
+ toField: string;
14
+ applyTimeRange: string;
15
+ calendar: {
16
+ label: string;
17
+ openButton: string;
18
+ closeButton: string;
19
+ };
20
+ absoluteTimeRangeTitle: string;
21
+ };
22
+ DataSourcePermissions: {
23
+ form: () => string;
24
+ roleType: string;
25
+ rolePicker: string;
26
+ permissionLevel: string;
27
+ };
28
+ DataSource: {
29
+ TestData: {
30
+ QueryTab: {
31
+ scenarioSelectContainer: string;
32
+ scenarioSelect: string;
33
+ max: string;
34
+ min: string;
35
+ noise: string;
36
+ seriesCount: string;
37
+ spread: string;
38
+ startValue: string;
39
+ drop: string;
40
+ };
41
+ };
42
+ DataSourceHttpSettings: {
43
+ urlInput: string;
44
+ };
45
+ Jaeger: {
46
+ traceIDInput: string;
47
+ };
48
+ Prometheus: {
49
+ configPage: {
50
+ connectionSettings: string;
51
+ exemplarsAddButton: string;
52
+ internalLinkSwitch: string;
53
+ };
54
+ exemplarMarker: string;
55
+ };
56
+ };
57
+ Menu: {
58
+ MenuComponent: (title: string) => string;
59
+ MenuGroup: (title: string) => string;
60
+ MenuItem: (title: string) => string;
61
+ SubMenu: {
62
+ container: string;
63
+ icon: string;
64
+ };
65
+ };
66
+ Panels: {
67
+ Panel: {
68
+ title: (title: string) => string;
69
+ headerItems: (item: string) => string;
70
+ menuItems: (item: string) => string;
71
+ menu: (title: string) => string;
72
+ containerByTitle: (title: string) => string;
73
+ headerCornerInfo: (mode: string) => string;
74
+ status: {
75
+ "10.2.0": (status: string) => string;
76
+ "8.0.0": (_: string) => string;
77
+ };
78
+ loadingBar: () => string;
79
+ HoverWidget: {
80
+ container: string;
81
+ dragIcon: string;
82
+ };
83
+ };
84
+ Visualization: {
85
+ Graph: {
86
+ container: string;
87
+ VisualizationTab: {
88
+ legendSection: string;
89
+ };
90
+ Legend: {
91
+ legendItemAlias: (name: string) => string;
92
+ showLegendSwitch: string;
93
+ };
94
+ xAxis: {
95
+ labels: () => string;
96
+ };
97
+ };
98
+ BarGauge: {
99
+ value: string;
100
+ valueV2: string;
101
+ };
102
+ PieChart: {
103
+ svgSlice: string;
104
+ };
105
+ Text: {
106
+ container: () => string;
107
+ };
108
+ Table: {
109
+ header: string;
110
+ footer: string;
111
+ body: {
112
+ '10.2.0': string;
113
+ };
114
+ };
115
+ };
116
+ };
117
+ VizLegend: {
118
+ seriesName: (name: string) => string;
119
+ };
120
+ Drawer: {
121
+ General: {
122
+ title: (title: string) => string;
123
+ expand: string;
124
+ contract: string;
125
+ close: string;
126
+ rcContentWrapper: () => string;
127
+ };
128
+ };
129
+ PanelEditor: {
130
+ General: {
131
+ content: string;
132
+ };
133
+ OptionsPane: {
134
+ content: string;
135
+ select: string;
136
+ fieldLabel: (type: string) => string;
137
+ };
138
+ DataPane: {
139
+ content: string;
140
+ };
141
+ applyButton: string;
142
+ toggleVizPicker: {
143
+ '10.0.0': string;
144
+ "8.0.0": string;
145
+ };
146
+ toggleVizOptions: string;
147
+ toggleTableView: string;
148
+ showZoomField: string;
149
+ showAttributionField: string;
150
+ showScaleField: string;
151
+ showMeasureField: string;
152
+ showDebugField: string;
153
+ measureButton: string;
154
+ };
155
+ PanelInspector: {
156
+ Data: {
157
+ content: string;
158
+ };
159
+ Stats: {
160
+ content: string;
161
+ };
162
+ Json: {
163
+ content: string;
164
+ };
165
+ Query: {
166
+ content: string;
167
+ refreshButton: string;
168
+ jsonObjectKeys: () => string;
169
+ };
170
+ };
171
+ Tab: {
172
+ title: (title: string) => string;
173
+ active: () => string;
174
+ };
175
+ RefreshPicker: {
176
+ runButton: string;
177
+ intervalButton: string;
178
+ runButtonV2: string;
179
+ intervalButtonV2: string;
180
+ };
181
+ QueryTab: {
182
+ content: string;
183
+ queryInspectorButton: string;
184
+ queryHistoryButton: string;
185
+ addQuery: string;
186
+ };
187
+ QueryHistory: {
188
+ queryText: string;
189
+ };
190
+ QueryEditorRows: {
191
+ rows: string;
192
+ };
193
+ QueryEditorRow: {
194
+ actionButton: (title: string) => string;
195
+ title: (refId: string) => string;
196
+ container: (refId: string) => string;
197
+ };
198
+ AlertTab: {
199
+ content: string;
200
+ };
201
+ Alert: {
202
+ alert: (severity: string) => string;
203
+ alertV2: (severity: string) => string;
204
+ };
205
+ TransformTab: {
206
+ content: string;
207
+ newTransform: (name: string) => string;
208
+ transformationEditor: (name: string) => string;
209
+ transformationEditorDebugger: (name: string) => string;
210
+ };
211
+ Transforms: {
212
+ card: (name: string) => string;
213
+ Reduce: {
214
+ modeLabel: string;
215
+ calculationsLabel: string;
216
+ };
217
+ SpatialOperations: {
218
+ actionLabel: string;
219
+ locationLabel: string;
220
+ location: {
221
+ autoOption: string;
222
+ coords: {
223
+ option: string;
224
+ latitudeFieldLabel: string;
225
+ longitudeFieldLabel: string;
226
+ };
227
+ geohash: {
228
+ option: string;
229
+ geohashFieldLabel: string;
230
+ };
231
+ lookup: {
232
+ option: string;
233
+ lookupFieldLabel: string;
234
+ gazetteerFieldLabel: string;
235
+ };
236
+ };
237
+ };
238
+ searchInput: string;
239
+ addTransformationButton: string;
240
+ };
241
+ NavBar: {
242
+ Configuration: {
243
+ button: string;
244
+ };
245
+ Toggle: {
246
+ button: string;
247
+ };
248
+ Reporting: {
249
+ button: string;
250
+ };
251
+ };
252
+ NavMenu: {
253
+ item: string;
254
+ };
255
+ NavToolbar: {
256
+ container: string;
257
+ };
258
+ PageToolbar: {
259
+ container: () => string;
260
+ item: (tooltip: string) => string;
261
+ shotMoreItems: {
262
+ "8.0.0": string;
263
+ };
264
+ itemButton: (title: string) => string;
265
+ itemButtonTitle: {
266
+ '10.1.0': string;
267
+ "8.0.0": string;
268
+ };
269
+ };
270
+ QueryEditorToolbarItem: {
271
+ button: (title: string) => string;
272
+ };
273
+ BackButton: {
274
+ backArrow: string;
275
+ };
276
+ OptionsGroup: {
277
+ group: (title?: string) => string;
278
+ toggle: (title?: string) => string;
279
+ };
280
+ PluginVisualization: {
281
+ item: (title: string) => string;
282
+ current: () => string;
283
+ };
284
+ Select: {
285
+ option: string;
286
+ input: () => string;
287
+ singleValue: () => string;
288
+ };
289
+ FieldConfigEditor: {
290
+ content: string;
291
+ };
292
+ OverridesConfigEditor: {
293
+ content: string;
294
+ };
295
+ FolderPicker: {
296
+ container: string;
297
+ containerV2: string;
298
+ input: string;
299
+ };
300
+ ReadonlyFolderPicker: {
301
+ container: string;
302
+ };
303
+ DataSourcePicker: {
304
+ container: {
305
+ '10.0.0': string;
306
+ '8.3.0': string;
307
+ };
308
+ input: () => string;
309
+ inputV2: string;
310
+ };
311
+ TimeZonePicker: {
312
+ container: string;
313
+ containerV2: string;
314
+ };
315
+ WeekStartPicker: {
316
+ container: string;
317
+ containerV2: string;
318
+ placeholder: string;
319
+ };
320
+ TraceViewer: {
321
+ spanBar: string;
322
+ };
323
+ QueryField: {
324
+ container: string;
325
+ };
326
+ QueryBuilder: {
327
+ queryPatterns: string;
328
+ labelSelect: string;
329
+ valueSelect: string;
330
+ matchOperatorSelect: string;
331
+ };
332
+ ValuePicker: {
333
+ button: (name: string) => string;
334
+ select: (name: string) => string;
335
+ };
336
+ Search: {
337
+ section: string;
338
+ sectionV2: string;
339
+ items: string;
340
+ itemsV2: string;
341
+ cards: string;
342
+ collapseFolder: (sectionId: string) => string;
343
+ expandFolder: (sectionId: string) => string;
344
+ dashboardCard: (item: string) => string;
345
+ folderHeader: (folderName: string) => string;
346
+ folderContent: (folderName: string) => string;
347
+ dashboardItems: string;
348
+ };
349
+ DashboardLinks: {
350
+ container: string;
351
+ dropDown: string;
352
+ link: string;
353
+ };
354
+ LoadingIndicator: {
355
+ icon: string;
356
+ };
357
+ CallToActionCard: {
358
+ button: (name: string) => string;
359
+ buttonV2: (name: string) => string;
360
+ };
361
+ DataLinksContextMenu: {
362
+ singleLink: string;
363
+ };
364
+ CodeEditor: {
365
+ container: {
366
+ '10.3.0': string;
367
+ "8.0.0": string;
368
+ };
369
+ };
370
+ DashboardImportPage: {
371
+ textarea: string;
372
+ submit: string;
373
+ };
374
+ ImportDashboardForm: {
375
+ name: string;
376
+ submit: string;
377
+ };
378
+ PanelAlertTabContent: {
379
+ content: string;
380
+ };
381
+ VisualizationPreview: {
382
+ card: (name: string) => string;
383
+ };
384
+ ColorSwatch: {
385
+ name: string;
386
+ };
387
+ DashboardRow: {
388
+ title: (title: string) => string;
389
+ };
390
+ UserProfile: {
391
+ profileSaveButton: string;
392
+ preferencesSaveButton: string;
393
+ orgsTable: string;
394
+ sessionsTable: string;
395
+ };
396
+ FileUpload: {
397
+ inputField: string;
398
+ fileNameSpan: string;
399
+ };
400
+ DebugOverlay: {
401
+ wrapper: string;
402
+ };
403
+ OrgRolePicker: {
404
+ input: string;
405
+ };
406
+ AnalyticsToolbarButton: {
407
+ button: string;
408
+ };
409
+ Variables: {
410
+ variableOption: string;
411
+ };
412
+ Annotations: {
413
+ annotationsTypeInput: string;
414
+ annotationsChoosePanelInput: string;
415
+ };
416
+ Tooltip: {
417
+ container: string;
418
+ };
419
+ };