@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.
- package/README.md +1 -0
- package/dist/api.d.ts +41 -0
- package/dist/api.js +15 -0
- package/dist/e2e-selectors/index.d.ts +2 -0
- package/dist/e2e-selectors/index.js +20 -0
- package/dist/e2e-selectors/resolver.d.ts +3 -0
- package/dist/e2e-selectors/resolver.js +38 -0
- package/dist/e2e-selectors/resolver.test.d.ts +1 -0
- package/dist/e2e-selectors/resolver.test.js +39 -0
- package/dist/e2e-selectors/types.d.ts +691 -0
- package/dist/e2e-selectors/types.js +2 -0
- package/dist/e2e-selectors/versioned/apis.d.ts +29 -0
- package/dist/e2e-selectors/versioned/apis.js +35 -0
- package/dist/e2e-selectors/versioned/components.d.ts +419 -0
- package/dist/e2e-selectors/versioned/components.js +426 -0
- package/dist/e2e-selectors/versioned/constants.d.ts +1 -0
- package/dist/e2e-selectors/versioned/constants.js +4 -0
- package/dist/e2e-selectors/versioned/index.d.ts +2 -0
- package/dist/e2e-selectors/versioned/index.js +7 -0
- package/dist/e2e-selectors/versioned/pages.d.ts +334 -0
- package/dist/e2e-selectors/versioned/pages.js +345 -0
- package/dist/e2e-selectors/versioned/types.d.ts +8 -0
- package/dist/e2e-selectors/versioned/types.js +2 -0
- package/dist/fixtures/annotationEditPage.d.ts +7 -0
- package/dist/fixtures/annotationEditPage.js +62 -0
- package/dist/fixtures/commands/createDataSource.d.ts +8 -0
- package/dist/fixtures/commands/createDataSource.js +110 -0
- package/dist/fixtures/commands/createDataSourceConfigPage.d.ts +8 -0
- package/dist/fixtures/commands/createDataSourceConfigPage.js +82 -0
- package/dist/fixtures/commands/login.d.ts +6 -0
- package/dist/fixtures/commands/login.js +88 -0
- package/dist/fixtures/commands/readProvision.d.ts +7 -0
- package/dist/fixtures/commands/readProvision.js +67 -0
- package/dist/fixtures/explorePage.d.ts +7 -0
- package/dist/fixtures/explorePage.js +59 -0
- package/dist/fixtures/grafanaVersion.d.ts +6 -0
- package/dist/fixtures/grafanaVersion.js +63 -0
- package/dist/fixtures/index.d.ts +14 -0
- package/dist/fixtures/index.js +29 -0
- package/dist/fixtures/newDashboardPage.d.ts +7 -0
- package/dist/fixtures/newDashboardPage.js +59 -0
- package/dist/fixtures/panelEditPage.d.ts +7 -0
- package/dist/fixtures/panelEditPage.js +56 -0
- package/dist/fixtures/selectors.d.ts +7 -0
- package/dist/fixtures/selectors.js +62 -0
- package/dist/fixtures/types.d.ts +2 -0
- package/dist/fixtures/types.js +2 -0
- package/dist/fixtures/variableEditPage.d.ts +7 -0
- package/dist/fixtures/variableEditPage.js +62 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +22 -0
- package/dist/matchers/index.d.ts +20 -0
- package/dist/matchers/index.js +13 -0
- package/dist/matchers/toBeOK.d.ts +7 -0
- package/dist/matchers/toBeOK.js +69 -0
- package/dist/matchers/toDisplayPreviews.d.ts +7 -0
- package/dist/matchers/toDisplayPreviews.js +70 -0
- package/dist/matchers/toHavePanelError.d.ts +9 -0
- package/dist/matchers/toHavePanelError.js +74 -0
- package/dist/matchers/utils.d.ts +1 -0
- package/dist/matchers/utils.js +5 -0
- package/dist/models/AnnotationEditPage.d.ts +8 -0
- package/dist/models/AnnotationEditPage.js +82 -0
- package/dist/models/AnnotationPage.d.ts +8 -0
- package/dist/models/AnnotationPage.js +123 -0
- package/dist/models/DashboardPage.d.ts +15 -0
- package/dist/models/DashboardPage.js +163 -0
- package/dist/models/DataSourceConfigPage.d.ts +10 -0
- package/dist/models/DataSourceConfigPage.js +135 -0
- package/dist/models/DataSourcePicker.d.ts +6 -0
- package/dist/models/DataSourcePicker.js +86 -0
- package/dist/models/ExplorePage.d.ts +12 -0
- package/dist/models/ExplorePage.js +130 -0
- package/dist/models/GrafanaPage.d.ts +11 -0
- package/dist/models/GrafanaPage.js +150 -0
- package/dist/models/PanelEditPage.d.ts +15 -0
- package/dist/models/PanelEditPage.js +165 -0
- package/dist/models/TimeRange.d.ts +6 -0
- package/dist/models/TimeRange.js +119 -0
- package/dist/models/VariableEditPage.d.ts +10 -0
- package/dist/models/VariableEditPage.js +109 -0
- package/dist/models/VariablePage.d.ts +8 -0
- package/dist/models/VariablePage.js +107 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +19 -0
- package/dist/selectorEngine.d.ts +4 -0
- package/dist/selectorEngine.js +18 -0
- package/dist/types.d.ts +54 -0
- package/dist/types.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.versionedComponents = void 0;
|
|
5
|
+
var constants_1 = require("./constants");
|
|
6
|
+
exports.versionedComponents = {
|
|
7
|
+
Breadcrumbs: {
|
|
8
|
+
breadcrumb: {
|
|
9
|
+
'9.4.0': function (title) { return "data-testid ".concat(title, " breadcrumb"); },
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
TimePicker: {
|
|
13
|
+
openButton: (_a = {
|
|
14
|
+
'8.1.0': 'data-testid TimePicker Open Button'
|
|
15
|
+
},
|
|
16
|
+
_a[constants_1.MIN_GRAFANA_VERSION] = 'TimePicker open button',
|
|
17
|
+
_a),
|
|
18
|
+
fromField: 'Time Range from field',
|
|
19
|
+
toField: 'Time Range to field',
|
|
20
|
+
applyTimeRange: 'data-testid TimePicker submit button',
|
|
21
|
+
calendar: {
|
|
22
|
+
label: 'Time Range calendar',
|
|
23
|
+
openButton: 'Open time range calendar',
|
|
24
|
+
closeButton: 'Close time range Calendar',
|
|
25
|
+
},
|
|
26
|
+
absoluteTimeRangeTitle: 'data-testid-absolute-time-range-narrow',
|
|
27
|
+
},
|
|
28
|
+
DataSourcePermissions: {
|
|
29
|
+
form: function () { return 'form[name="addPermission"]'; },
|
|
30
|
+
roleType: 'Role to add new permission to',
|
|
31
|
+
rolePicker: 'Built-in role picker',
|
|
32
|
+
permissionLevel: 'Permission Level',
|
|
33
|
+
},
|
|
34
|
+
DataSource: {
|
|
35
|
+
TestData: {
|
|
36
|
+
QueryTab: {
|
|
37
|
+
scenarioSelectContainer: 'Test Data Query scenario select container',
|
|
38
|
+
scenarioSelect: 'Test Data Query scenario select',
|
|
39
|
+
max: 'TestData max',
|
|
40
|
+
min: 'TestData min',
|
|
41
|
+
noise: 'TestData noise',
|
|
42
|
+
seriesCount: 'TestData series count',
|
|
43
|
+
spread: 'TestData spread',
|
|
44
|
+
startValue: 'TestData start value',
|
|
45
|
+
drop: 'TestData drop values',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
DataSourceHttpSettings: {
|
|
49
|
+
urlInput: 'Datasource HTTP settings url',
|
|
50
|
+
},
|
|
51
|
+
Jaeger: {
|
|
52
|
+
traceIDInput: 'Trace ID',
|
|
53
|
+
},
|
|
54
|
+
Prometheus: {
|
|
55
|
+
configPage: {
|
|
56
|
+
connectionSettings: 'Data source connection URL',
|
|
57
|
+
exemplarsAddButton: 'Add exemplar config button',
|
|
58
|
+
internalLinkSwitch: 'Internal link switch',
|
|
59
|
+
},
|
|
60
|
+
exemplarMarker: 'Exemplar marker',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
Menu: {
|
|
64
|
+
MenuComponent: function (title) { return "".concat(title, " menu"); },
|
|
65
|
+
MenuGroup: function (title) { return "".concat(title, " menu group"); },
|
|
66
|
+
MenuItem: function (title) { return "".concat(title, " menu item"); },
|
|
67
|
+
SubMenu: {
|
|
68
|
+
container: 'SubMenu container',
|
|
69
|
+
icon: 'SubMenu icon',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
Panels: {
|
|
73
|
+
Panel: {
|
|
74
|
+
title: function (title) { return "data-testid Panel header ".concat(title); },
|
|
75
|
+
headerItems: function (item) { return "data-testid Panel header item ".concat(item); },
|
|
76
|
+
menuItems: function (item) { return "data-testid Panel menu item ".concat(item); },
|
|
77
|
+
menu: function (title) { return "data-testid Panel menu ".concat(title); },
|
|
78
|
+
containerByTitle: function (title) { return "".concat(title, " panel"); },
|
|
79
|
+
headerCornerInfo: function (mode) { return "Panel header ".concat(mode); },
|
|
80
|
+
status: (_b = {},
|
|
81
|
+
_b['10.2.0'] = function (status) { return "data-testid Panel status ".concat(status); },
|
|
82
|
+
_b[constants_1.MIN_GRAFANA_VERSION] = function (_) { return 'Panel status'; },
|
|
83
|
+
_b),
|
|
84
|
+
loadingBar: function () { return "Panel loading bar"; },
|
|
85
|
+
HoverWidget: {
|
|
86
|
+
container: 'data-testid hover-header-container',
|
|
87
|
+
dragIcon: 'data-testid drag-icon',
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
Visualization: {
|
|
91
|
+
Graph: {
|
|
92
|
+
container: 'Graph container',
|
|
93
|
+
VisualizationTab: {
|
|
94
|
+
legendSection: 'Legend section',
|
|
95
|
+
},
|
|
96
|
+
Legend: {
|
|
97
|
+
legendItemAlias: function (name) { return "gpl alias ".concat(name); },
|
|
98
|
+
showLegendSwitch: 'gpl show legend',
|
|
99
|
+
},
|
|
100
|
+
xAxis: {
|
|
101
|
+
labels: function () { return 'div.flot-x-axis > div.flot-tick-label'; },
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
BarGauge: {
|
|
105
|
+
value: 'Bar gauge value',
|
|
106
|
+
valueV2: 'data-testid Bar gauge value',
|
|
107
|
+
},
|
|
108
|
+
PieChart: {
|
|
109
|
+
svgSlice: 'Pie Chart Slice',
|
|
110
|
+
},
|
|
111
|
+
Text: {
|
|
112
|
+
container: function () { return '.markdown-html'; },
|
|
113
|
+
},
|
|
114
|
+
Table: {
|
|
115
|
+
header: 'table header',
|
|
116
|
+
footer: 'table-footer',
|
|
117
|
+
body: {
|
|
118
|
+
'10.2.0': 'data-testid table body',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
VizLegend: {
|
|
124
|
+
seriesName: function (name) { return "VizLegend series ".concat(name); },
|
|
125
|
+
},
|
|
126
|
+
Drawer: {
|
|
127
|
+
General: {
|
|
128
|
+
title: function (title) { return "Drawer title ".concat(title); },
|
|
129
|
+
expand: 'Drawer expand',
|
|
130
|
+
contract: 'Drawer contract',
|
|
131
|
+
close: 'Drawer close',
|
|
132
|
+
rcContentWrapper: function () { return '.rc-drawer-content-wrapper'; },
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
PanelEditor: {
|
|
136
|
+
General: {
|
|
137
|
+
content: 'Panel editor content',
|
|
138
|
+
},
|
|
139
|
+
OptionsPane: {
|
|
140
|
+
content: 'Panel editor option pane content',
|
|
141
|
+
select: 'Panel editor option pane select',
|
|
142
|
+
fieldLabel: function (type) { return "".concat(type, " field property editor"); },
|
|
143
|
+
},
|
|
144
|
+
DataPane: {
|
|
145
|
+
content: 'Panel editor data pane content',
|
|
146
|
+
},
|
|
147
|
+
applyButton: 'data-testid Apply changes and go back to dashboard',
|
|
148
|
+
toggleVizPicker: (_c = {
|
|
149
|
+
'10.0.0': 'data-testid toggle-viz-picker'
|
|
150
|
+
},
|
|
151
|
+
_c[constants_1.MIN_GRAFANA_VERSION] = 'toggle-viz-picker',
|
|
152
|
+
_c),
|
|
153
|
+
toggleVizOptions: 'data-testid toggle-viz-options',
|
|
154
|
+
toggleTableView: 'toggle-table-view',
|
|
155
|
+
showZoomField: 'Map controls Show zoom control field property editor',
|
|
156
|
+
showAttributionField: 'Map controls Show attribution field property editor',
|
|
157
|
+
showScaleField: 'Map controls Show scale field property editor',
|
|
158
|
+
showMeasureField: 'Map controls Show measure tools field property editor',
|
|
159
|
+
showDebugField: 'Map controls Show debug field property editor',
|
|
160
|
+
measureButton: 'show measure tools',
|
|
161
|
+
},
|
|
162
|
+
PanelInspector: {
|
|
163
|
+
Data: {
|
|
164
|
+
content: 'Panel inspector Data content',
|
|
165
|
+
},
|
|
166
|
+
Stats: {
|
|
167
|
+
content: 'Panel inspector Stats content',
|
|
168
|
+
},
|
|
169
|
+
Json: {
|
|
170
|
+
content: 'Panel inspector Json content',
|
|
171
|
+
},
|
|
172
|
+
Query: {
|
|
173
|
+
content: 'Panel inspector Query content',
|
|
174
|
+
refreshButton: 'Panel inspector Query refresh button',
|
|
175
|
+
jsonObjectKeys: function () { return '.json-formatter-key'; },
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
Tab: {
|
|
179
|
+
title: function (title) { return "Tab ".concat(title); },
|
|
180
|
+
active: function () { return '[class*="-activeTabStyle"]'; },
|
|
181
|
+
},
|
|
182
|
+
RefreshPicker: {
|
|
183
|
+
runButton: 'RefreshPicker run button',
|
|
184
|
+
intervalButton: 'RefreshPicker interval button',
|
|
185
|
+
runButtonV2: 'data-testid RefreshPicker run button',
|
|
186
|
+
intervalButtonV2: 'data-testid RefreshPicker interval button',
|
|
187
|
+
},
|
|
188
|
+
QueryTab: {
|
|
189
|
+
content: 'Query editor tab content',
|
|
190
|
+
queryInspectorButton: 'Query inspector button',
|
|
191
|
+
queryHistoryButton: 'data-testid query-history-button',
|
|
192
|
+
addQuery: 'data-testid query-tab-add-query',
|
|
193
|
+
},
|
|
194
|
+
QueryHistory: {
|
|
195
|
+
queryText: 'Query text',
|
|
196
|
+
},
|
|
197
|
+
QueryEditorRows: {
|
|
198
|
+
rows: 'Query editor row',
|
|
199
|
+
},
|
|
200
|
+
QueryEditorRow: {
|
|
201
|
+
actionButton: function (title) { return "".concat(title); },
|
|
202
|
+
title: function (refId) { return "Query editor row title ".concat(refId); },
|
|
203
|
+
container: function (refId) { return "Query editor row ".concat(refId); },
|
|
204
|
+
},
|
|
205
|
+
AlertTab: {
|
|
206
|
+
content: 'Alert editor tab content',
|
|
207
|
+
},
|
|
208
|
+
Alert: {
|
|
209
|
+
alert: function (severity) { return "Alert ".concat(severity); },
|
|
210
|
+
alertV2: function (severity) { return "data-testid Alert ".concat(severity); },
|
|
211
|
+
},
|
|
212
|
+
TransformTab: {
|
|
213
|
+
content: 'data-testid Transform editor tab content',
|
|
214
|
+
newTransform: function (name) { return "data-testid New transform ".concat(name); },
|
|
215
|
+
transformationEditor: function (name) { return "data-testid Transformation editor ".concat(name); },
|
|
216
|
+
transformationEditorDebugger: function (name) { return "data-testid Transformation editor debugger ".concat(name); },
|
|
217
|
+
},
|
|
218
|
+
Transforms: {
|
|
219
|
+
card: function (name) { return "data-testid New transform ".concat(name); },
|
|
220
|
+
Reduce: {
|
|
221
|
+
modeLabel: 'Transform mode label',
|
|
222
|
+
calculationsLabel: 'Transform calculations label',
|
|
223
|
+
},
|
|
224
|
+
SpatialOperations: {
|
|
225
|
+
actionLabel: 'root Action field property editor',
|
|
226
|
+
locationLabel: 'root Location Mode field property editor',
|
|
227
|
+
location: {
|
|
228
|
+
autoOption: 'Auto location option',
|
|
229
|
+
coords: {
|
|
230
|
+
option: 'Coords location option',
|
|
231
|
+
latitudeFieldLabel: 'root Latitude field field property editor',
|
|
232
|
+
longitudeFieldLabel: 'root Longitude field field property editor',
|
|
233
|
+
},
|
|
234
|
+
geohash: {
|
|
235
|
+
option: 'Geohash location option',
|
|
236
|
+
geohashFieldLabel: 'root Geohash field field property editor',
|
|
237
|
+
},
|
|
238
|
+
lookup: {
|
|
239
|
+
option: 'Lookup location option',
|
|
240
|
+
lookupFieldLabel: 'root Lookup field field property editor',
|
|
241
|
+
gazetteerFieldLabel: 'root Gazetteer field property editor',
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
searchInput: 'search transformations',
|
|
246
|
+
addTransformationButton: 'data-testid add transformation button',
|
|
247
|
+
},
|
|
248
|
+
NavBar: {
|
|
249
|
+
Configuration: {
|
|
250
|
+
button: 'Configuration',
|
|
251
|
+
},
|
|
252
|
+
Toggle: {
|
|
253
|
+
button: 'Toggle menu',
|
|
254
|
+
},
|
|
255
|
+
Reporting: {
|
|
256
|
+
button: 'Reporting',
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
NavMenu: {
|
|
260
|
+
item: 'data-testid Nav menu item',
|
|
261
|
+
},
|
|
262
|
+
NavToolbar: {
|
|
263
|
+
container: 'data-testid Nav toolbar',
|
|
264
|
+
},
|
|
265
|
+
PageToolbar: {
|
|
266
|
+
container: function () { return '.page-toolbar'; },
|
|
267
|
+
item: function (tooltip) { return "".concat(tooltip); },
|
|
268
|
+
shotMoreItems: (_d = {},
|
|
269
|
+
_d[constants_1.MIN_GRAFANA_VERSION] = 'Show more items',
|
|
270
|
+
_d),
|
|
271
|
+
itemButton: function (title) { return "data-testid ".concat(title); },
|
|
272
|
+
itemButtonTitle: (_e = {
|
|
273
|
+
'10.1.0': 'Add button'
|
|
274
|
+
},
|
|
275
|
+
_e[constants_1.MIN_GRAFANA_VERSION] = 'Add panel button',
|
|
276
|
+
_e),
|
|
277
|
+
},
|
|
278
|
+
QueryEditorToolbarItem: {
|
|
279
|
+
button: function (title) { return "QueryEditor toolbar item button ".concat(title); },
|
|
280
|
+
},
|
|
281
|
+
BackButton: {
|
|
282
|
+
backArrow: 'Go Back',
|
|
283
|
+
},
|
|
284
|
+
OptionsGroup: {
|
|
285
|
+
group: function (title) { return (title ? "Options group ".concat(title) : 'Options group'); },
|
|
286
|
+
toggle: function (title) { return (title ? "Options group ".concat(title, " toggle") : 'Options group toggle'); },
|
|
287
|
+
},
|
|
288
|
+
PluginVisualization: {
|
|
289
|
+
item: function (title) { return "Plugin visualization item ".concat(title); },
|
|
290
|
+
current: function () { return '[class*="-currentVisualizationItem"]'; },
|
|
291
|
+
},
|
|
292
|
+
Select: {
|
|
293
|
+
option: 'Select option',
|
|
294
|
+
input: function () { return 'input[id*="time-options-input"]'; },
|
|
295
|
+
singleValue: function () { return 'div[class*="-singleValue"]'; },
|
|
296
|
+
},
|
|
297
|
+
FieldConfigEditor: {
|
|
298
|
+
content: 'Field config editor content',
|
|
299
|
+
},
|
|
300
|
+
OverridesConfigEditor: {
|
|
301
|
+
content: 'Field overrides editor content',
|
|
302
|
+
},
|
|
303
|
+
FolderPicker: {
|
|
304
|
+
container: 'Folder picker select container',
|
|
305
|
+
containerV2: 'data-testid Folder picker select container',
|
|
306
|
+
input: 'Select a folder',
|
|
307
|
+
},
|
|
308
|
+
ReadonlyFolderPicker: {
|
|
309
|
+
container: 'data-testid Readonly folder picker select container',
|
|
310
|
+
},
|
|
311
|
+
DataSourcePicker: {
|
|
312
|
+
container: {
|
|
313
|
+
'10.0.0': 'data-testid Data source picker select container',
|
|
314
|
+
'8.3.0': 'Data source picker select container',
|
|
315
|
+
},
|
|
316
|
+
input: function () { return 'input[id="data-source-picker"]'; },
|
|
317
|
+
inputV2: 'data-testid Select a data source',
|
|
318
|
+
},
|
|
319
|
+
TimeZonePicker: {
|
|
320
|
+
container: 'Time zone picker select container',
|
|
321
|
+
containerV2: 'data-testid Time zone picker select container',
|
|
322
|
+
},
|
|
323
|
+
WeekStartPicker: {
|
|
324
|
+
container: 'Choose starting day of the week',
|
|
325
|
+
containerV2: 'data-testid Choose starting day of the week',
|
|
326
|
+
placeholder: 'Choose starting day of the week',
|
|
327
|
+
},
|
|
328
|
+
TraceViewer: {
|
|
329
|
+
spanBar: 'data-testid SpanBar--wrapper',
|
|
330
|
+
},
|
|
331
|
+
QueryField: { container: 'Query field' },
|
|
332
|
+
QueryBuilder: {
|
|
333
|
+
queryPatterns: 'Query patterns',
|
|
334
|
+
labelSelect: 'Select label',
|
|
335
|
+
valueSelect: 'Select value',
|
|
336
|
+
matchOperatorSelect: 'Select match operator',
|
|
337
|
+
},
|
|
338
|
+
ValuePicker: {
|
|
339
|
+
button: function (name) { return "Value picker button ".concat(name); },
|
|
340
|
+
select: function (name) { return "Value picker select ".concat(name); },
|
|
341
|
+
},
|
|
342
|
+
Search: {
|
|
343
|
+
section: 'Search section',
|
|
344
|
+
sectionV2: 'data-testid Search section',
|
|
345
|
+
items: 'Search items',
|
|
346
|
+
itemsV2: 'data-testid Search items',
|
|
347
|
+
cards: 'data-testid Search cards',
|
|
348
|
+
collapseFolder: function (sectionId) { return "data-testid Collapse folder ".concat(sectionId); },
|
|
349
|
+
expandFolder: function (sectionId) { return "data-testid Expand folder ".concat(sectionId); },
|
|
350
|
+
dashboardCard: function (item) { return "data-testid Search card ".concat(item); },
|
|
351
|
+
folderHeader: function (folderName) { return "data-testid Folder header ".concat(folderName); },
|
|
352
|
+
folderContent: function (folderName) { return "data-testid Folder content ".concat(folderName); },
|
|
353
|
+
dashboardItems: 'data-testid Dashboard search item',
|
|
354
|
+
},
|
|
355
|
+
DashboardLinks: {
|
|
356
|
+
container: 'data-testid Dashboard link container',
|
|
357
|
+
dropDown: 'data-testid Dashboard link dropdown',
|
|
358
|
+
link: 'data-testid Dashboard link',
|
|
359
|
+
},
|
|
360
|
+
LoadingIndicator: {
|
|
361
|
+
icon: 'Loading indicator',
|
|
362
|
+
},
|
|
363
|
+
CallToActionCard: {
|
|
364
|
+
button: function (name) { return "Call to action button ".concat(name); },
|
|
365
|
+
buttonV2: function (name) { return "data-testid Call to action button ".concat(name); },
|
|
366
|
+
},
|
|
367
|
+
DataLinksContextMenu: {
|
|
368
|
+
singleLink: 'Data link',
|
|
369
|
+
},
|
|
370
|
+
CodeEditor: {
|
|
371
|
+
container: (_f = {
|
|
372
|
+
'10.3.0': 'data-testid Code editor container'
|
|
373
|
+
},
|
|
374
|
+
_f[constants_1.MIN_GRAFANA_VERSION] = 'Code editor container',
|
|
375
|
+
_f),
|
|
376
|
+
},
|
|
377
|
+
DashboardImportPage: {
|
|
378
|
+
textarea: 'data-testid-import-dashboard-textarea',
|
|
379
|
+
submit: 'data-testid-load-dashboard',
|
|
380
|
+
},
|
|
381
|
+
ImportDashboardForm: {
|
|
382
|
+
name: 'data-testid-import-dashboard-title',
|
|
383
|
+
submit: 'data-testid-import-dashboard-submit',
|
|
384
|
+
},
|
|
385
|
+
PanelAlertTabContent: {
|
|
386
|
+
content: 'Unified alert editor tab content',
|
|
387
|
+
},
|
|
388
|
+
VisualizationPreview: {
|
|
389
|
+
card: function (name) { return "data-testid suggestion-".concat(name); },
|
|
390
|
+
},
|
|
391
|
+
ColorSwatch: {
|
|
392
|
+
name: "data-testid-colorswatch",
|
|
393
|
+
},
|
|
394
|
+
DashboardRow: {
|
|
395
|
+
title: function (title) { return "data-testid dashboard-row-title-".concat(title); },
|
|
396
|
+
},
|
|
397
|
+
UserProfile: {
|
|
398
|
+
profileSaveButton: 'data-testid-user-profile-save',
|
|
399
|
+
preferencesSaveButton: 'data-testid-shared-prefs-save',
|
|
400
|
+
orgsTable: 'data-testid-user-orgs-table',
|
|
401
|
+
sessionsTable: 'data-testid-user-sessions-table',
|
|
402
|
+
},
|
|
403
|
+
FileUpload: {
|
|
404
|
+
inputField: 'data-testid-file-upload-input-field',
|
|
405
|
+
fileNameSpan: 'data-testid-file-upload-file-name',
|
|
406
|
+
},
|
|
407
|
+
DebugOverlay: {
|
|
408
|
+
wrapper: 'debug-overlay',
|
|
409
|
+
},
|
|
410
|
+
OrgRolePicker: {
|
|
411
|
+
input: 'Role',
|
|
412
|
+
},
|
|
413
|
+
AnalyticsToolbarButton: {
|
|
414
|
+
button: 'Dashboard insights',
|
|
415
|
+
},
|
|
416
|
+
Variables: {
|
|
417
|
+
variableOption: 'data-testid variable-option',
|
|
418
|
+
},
|
|
419
|
+
Annotations: {
|
|
420
|
+
annotationsTypeInput: 'annotations-type-input',
|
|
421
|
+
annotationsChoosePanelInput: 'choose-panels-input',
|
|
422
|
+
},
|
|
423
|
+
Tooltip: {
|
|
424
|
+
container: 'data-testid tooltip',
|
|
425
|
+
},
|
|
426
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MIN_GRAFANA_VERSION = "8.0.0";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.versionedPages = exports.versionedComponents = void 0;
|
|
4
|
+
var components_1 = require("./components");
|
|
5
|
+
Object.defineProperty(exports, "versionedComponents", { enumerable: true, get: function () { return components_1.versionedComponents; } });
|
|
6
|
+
var pages_1 = require("./pages");
|
|
7
|
+
Object.defineProperty(exports, "versionedPages", { enumerable: true, get: function () { return pages_1.versionedPages; } });
|