@grafana/plugin-e2e 3.8.0 → 3.8.1-canary.2678.26587359388.0
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/dist/index.d.ts +2 -2
- package/dist/models/GrafanaAPIClient.js +4 -1
- package/dist/models/components/AlertRuleQuery.js +3 -3
- package/dist/models/components/ComponentBase.js +5 -2
- package/dist/models/components/Panel.js +5 -2
- package/dist/models/components/PanelEditOptionsGroup.js +6 -3
- package/dist/models/components/ScopedComponent.js +4 -1
- package/dist/models/pages/AlertRuleEditPage.js +18 -14
- package/dist/models/pages/AnnotationEditPage.js +3 -3
- package/dist/models/pages/AnnotationPage.js +5 -2
- package/dist/models/pages/AppConfigPage.js +5 -2
- package/dist/models/pages/AppPage.js +5 -2
- package/dist/models/pages/DashboardPage.js +2 -2
- package/dist/models/pages/DataSourceConfigPage.js +4 -1
- package/dist/models/pages/ExplorePage.js +1 -1
- package/dist/models/pages/GrafanaPage.js +5 -2
- package/dist/models/pages/PanelEditPage.js +2 -2
- package/dist/models/pages/PluginConfigPage.js +5 -2
- package/dist/models/pages/VariableEditPage.js +3 -3
- package/dist/models/pages/VariablePage.js +5 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -89,8 +89,8 @@ declare class AlertRuleEditPage extends GrafanaPage {
|
|
|
89
89
|
/**
|
|
90
90
|
* Returns a locator for hte alert rule name field
|
|
91
91
|
*/
|
|
92
|
-
get alertRuleNameField():
|
|
93
|
-
get advancedModeSwitch():
|
|
92
|
+
get alertRuleNameField(): Locator;
|
|
93
|
+
get advancedModeSwitch(): Locator;
|
|
94
94
|
isAdvancedModeSupported(): Promise<boolean>;
|
|
95
95
|
enableAdvancedQueryMode(): Promise<void>;
|
|
96
96
|
disableAdvancedQueryMode(): Promise<void>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
3
6
|
class GrafanaAPIClient {
|
|
4
7
|
constructor(request) {
|
|
5
|
-
this
|
|
8
|
+
__publicField(this, "request", request);
|
|
6
9
|
}
|
|
7
10
|
async getUserIdByUsername(userName) {
|
|
8
11
|
const getUserIdByUserNameReq = await this.request.get(`/api/users/lookup?loginOrEmail=${userName}`);
|
|
@@ -5,12 +5,12 @@ var GrafanaPage = require('../pages/GrafanaPage.js');
|
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
8
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9
9
|
class AlertRuleQuery extends GrafanaPage.GrafanaPage {
|
|
10
10
|
constructor(ctx, locator) {
|
|
11
11
|
super(ctx);
|
|
12
|
-
this
|
|
13
|
-
this
|
|
12
|
+
__publicField(this, "ctx", ctx);
|
|
13
|
+
__publicField(this, "locator", locator);
|
|
14
14
|
__publicField(this, "datasource");
|
|
15
15
|
this.datasource = new DataSourcePicker.DataSourcePicker(ctx, locator);
|
|
16
16
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3
6
|
class ComponentBase {
|
|
4
7
|
constructor(ctx, element) {
|
|
5
|
-
this
|
|
6
|
-
this
|
|
8
|
+
__publicField(this, "ctx", ctx);
|
|
9
|
+
__publicField(this, "element", element);
|
|
7
10
|
}
|
|
8
11
|
locator(selectorOrLocator, options) {
|
|
9
12
|
if (!selectorOrLocator) {
|
|
@@ -22,12 +22,15 @@ function _interopNamespaceDefault(e) {
|
|
|
22
22
|
|
|
23
23
|
var semver__namespace = /*#__PURE__*/_interopNamespaceDefault(semver);
|
|
24
24
|
|
|
25
|
+
var __defProp = Object.defineProperty;
|
|
26
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
27
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
25
28
|
const ERROR_STATUS = "error";
|
|
26
29
|
class Panel extends GrafanaPage.GrafanaPage {
|
|
27
30
|
constructor(ctx, locator) {
|
|
28
31
|
super(ctx);
|
|
29
|
-
this
|
|
30
|
-
this
|
|
32
|
+
__publicField(this, "ctx", ctx);
|
|
33
|
+
__publicField(this, "locator", locator);
|
|
31
34
|
}
|
|
32
35
|
/**
|
|
33
36
|
* Returns a locator that resolves element(s) that contain the field name(s) that are currently displayed in the panel.
|
|
@@ -9,11 +9,14 @@ var semver = require('semver');
|
|
|
9
9
|
var RadioGroup = require('./RadioGroup.js');
|
|
10
10
|
var utils = require('../utils.js');
|
|
11
11
|
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
14
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
12
15
|
class PanelEditOptionsGroup {
|
|
13
16
|
constructor(ctx, element, groupLabel) {
|
|
14
|
-
this
|
|
15
|
-
this
|
|
16
|
-
this
|
|
17
|
+
__publicField(this, "ctx", ctx);
|
|
18
|
+
__publicField(this, "element", element);
|
|
19
|
+
__publicField(this, "groupLabel", groupLabel);
|
|
17
20
|
}
|
|
18
21
|
async isExpanded() {
|
|
19
22
|
const expanded = await this.getOptionsGroupToggle().getAttribute("aria-expanded");
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var GrafanaPage = require('../pages/GrafanaPage.js');
|
|
4
4
|
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
5
8
|
class ScopedComponent extends GrafanaPage.GrafanaPage {
|
|
6
9
|
constructor(ctx, root) {
|
|
7
10
|
super(ctx);
|
|
8
|
-
this
|
|
11
|
+
__publicField(this, "root", root);
|
|
9
12
|
}
|
|
10
13
|
/**
|
|
11
14
|
* Returns a new instance of this component scoped to the given root locator.
|
|
@@ -25,12 +25,16 @@ function _interopNamespaceDefault(e) {
|
|
|
25
25
|
|
|
26
26
|
var semver__namespace = /*#__PURE__*/_interopNamespaceDefault(semver);
|
|
27
27
|
|
|
28
|
+
var __defProp = Object.defineProperty;
|
|
29
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
30
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
28
31
|
const QUERY_AND_EXPRESSION_STEP_ID = "2";
|
|
32
|
+
const ALERT_PAGE_READY_TIMEOUT = 15e3;
|
|
29
33
|
class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
|
|
30
34
|
constructor(ctx, args) {
|
|
31
35
|
super(ctx, args);
|
|
32
|
-
this
|
|
33
|
-
this
|
|
36
|
+
__publicField(this, "ctx", ctx);
|
|
37
|
+
__publicField(this, "args", args);
|
|
34
38
|
}
|
|
35
39
|
/**
|
|
36
40
|
* Navigates to the annotation edit page. If a dashboard uid was not provided, it's assumed that it's a new dashboard.
|
|
@@ -60,12 +64,12 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
|
|
|
60
64
|
"alertingQueryAndExpressionsStepMode"
|
|
61
65
|
);
|
|
62
66
|
if (alertingQueryAndExpressionsStepMode) {
|
|
63
|
-
await test.expect(this.advancedModeSwitch).toBeVisible();
|
|
64
|
-
await test.expect(this.advancedModeSwitch).toHaveCount(1);
|
|
67
|
+
await test.expect(this.advancedModeSwitch).toBeVisible({ timeout: ALERT_PAGE_READY_TIMEOUT });
|
|
68
|
+
await test.expect(this.advancedModeSwitch).toHaveCount(1, { timeout: ALERT_PAGE_READY_TIMEOUT });
|
|
65
69
|
return true;
|
|
66
70
|
}
|
|
67
|
-
await test.expect(this.advancedModeSwitch).not.toBeVisible();
|
|
68
|
-
await test.expect(this.advancedModeSwitch).toHaveCount(0);
|
|
71
|
+
await test.expect(this.advancedModeSwitch).not.toBeVisible({ timeout: ALERT_PAGE_READY_TIMEOUT });
|
|
72
|
+
await test.expect(this.advancedModeSwitch).toHaveCount(0, { timeout: ALERT_PAGE_READY_TIMEOUT });
|
|
69
73
|
return false;
|
|
70
74
|
}
|
|
71
75
|
/*
|
|
@@ -98,15 +102,15 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
|
|
|
98
102
|
}
|
|
99
103
|
async getQueryRow(refId = "A") {
|
|
100
104
|
const advancedModeSupported = await this.isAdvancedModeSupported();
|
|
105
|
+
let locator;
|
|
101
106
|
if (advancedModeSupported && !await this.advancedModeSwitch.isChecked() && refId === "A") {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
locator = this.getByGrafanaSelector(this.ctx.selectors.components.QueryEditorRows.rows);
|
|
108
|
+
} else {
|
|
109
|
+
locator = this.getByGrafanaSelector(this.ctx.selectors.components.QueryEditorRows.rows).filter({
|
|
110
|
+
has: this.getByGrafanaSelector(this.ctx.selectors.components.QueryEditorRow.title(refId))
|
|
111
|
+
});
|
|
106
112
|
}
|
|
107
|
-
|
|
108
|
-
has: this.getByGrafanaSelector(this.ctx.selectors.components.QueryEditorRow.title(refId))
|
|
109
|
-
});
|
|
113
|
+
await locator.first().waitFor({ state: "visible", timeout: ALERT_PAGE_READY_TIMEOUT });
|
|
110
114
|
return new AlertRuleQuery.AlertRuleQuery(this.ctx, locator);
|
|
111
115
|
}
|
|
112
116
|
/**
|
|
@@ -173,7 +177,7 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
|
|
|
173
177
|
if (semver__namespace.lt(this.ctx.grafanaVersion, "11.1.0")) {
|
|
174
178
|
evaluateButton = this.ctx.page.getByRole("button", { name: "Preview", exact: true });
|
|
175
179
|
}
|
|
176
|
-
await test.expect(evaluateButton).toBeVisible();
|
|
180
|
+
await test.expect(evaluateButton).toBeVisible({ timeout: ALERT_PAGE_READY_TIMEOUT });
|
|
177
181
|
const evalReq = this.ctx.page.waitForRequest((req) => req.url().includes(this.ctx.selectors.apis.Alerting.eval), {
|
|
178
182
|
timeout: 5e3
|
|
179
183
|
}).catch(async () => {
|
|
@@ -25,12 +25,12 @@ var semver__namespace = /*#__PURE__*/_interopNamespaceDefault(semver);
|
|
|
25
25
|
|
|
26
26
|
var __defProp = Object.defineProperty;
|
|
27
27
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
28
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
28
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
29
29
|
class AnnotationEditPage extends GrafanaPage.GrafanaPage {
|
|
30
30
|
constructor(ctx, args) {
|
|
31
31
|
super(ctx, args);
|
|
32
|
-
this
|
|
33
|
-
this
|
|
32
|
+
__publicField(this, "ctx", ctx);
|
|
33
|
+
__publicField(this, "args", args);
|
|
34
34
|
__publicField(this, "datasource");
|
|
35
35
|
this.datasource = new DataSourcePicker.DataSourcePicker(ctx);
|
|
36
36
|
}
|
|
@@ -23,11 +23,14 @@ function _interopNamespaceDefault(e) {
|
|
|
23
23
|
|
|
24
24
|
var semver__namespace = /*#__PURE__*/_interopNamespaceDefault(semver);
|
|
25
25
|
|
|
26
|
+
var __defProp = Object.defineProperty;
|
|
27
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
28
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
26
29
|
class AnnotationPage extends GrafanaPage.GrafanaPage {
|
|
27
30
|
constructor(ctx, dashboard) {
|
|
28
31
|
super(ctx, dashboard);
|
|
29
|
-
this
|
|
30
|
-
this
|
|
32
|
+
__publicField(this, "ctx", ctx);
|
|
33
|
+
__publicField(this, "dashboard", dashboard);
|
|
31
34
|
}
|
|
32
35
|
/**
|
|
33
36
|
* Navigates to the annotation list page. If a dashboard uid was not provided, it's assumed that it's a new dashboard.
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var PluginConfigPage = require('./PluginConfigPage.js');
|
|
4
4
|
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
8
|
class AppConfigPage extends PluginConfigPage.PluginConfigPage {
|
|
6
9
|
constructor(ctx, args) {
|
|
7
10
|
super(ctx, args);
|
|
8
|
-
this
|
|
9
|
-
this
|
|
11
|
+
__publicField(this, "ctx", ctx);
|
|
12
|
+
__publicField(this, "args", args);
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
15
|
* Will wait for the settings endpoint to be called e.g. when saving settings
|
|
@@ -22,11 +22,14 @@ function _interopNamespaceDefault(e) {
|
|
|
22
22
|
|
|
23
23
|
var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
|
24
24
|
|
|
25
|
+
var __defProp = Object.defineProperty;
|
|
26
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
27
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
25
28
|
class AppPage extends GrafanaPage.GrafanaPage {
|
|
26
29
|
constructor(ctx, args) {
|
|
27
30
|
super(ctx, args);
|
|
28
|
-
this
|
|
29
|
-
this
|
|
31
|
+
__publicField(this, "ctx", ctx);
|
|
32
|
+
__publicField(this, "args", args);
|
|
30
33
|
}
|
|
31
34
|
/**
|
|
32
35
|
* Will append the `/a/${pluginId}` before the provided path and then
|
|
@@ -35,8 +35,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35
35
|
class DashboardPage extends GrafanaPage.GrafanaPage {
|
|
36
36
|
constructor(ctx, dashboard) {
|
|
37
37
|
super(ctx, dashboard);
|
|
38
|
-
this
|
|
39
|
-
this
|
|
38
|
+
__publicField(this, "ctx", ctx);
|
|
39
|
+
__publicField(this, "dashboard", dashboard);
|
|
40
40
|
__publicField(this, "dataSourcePicker");
|
|
41
41
|
__publicField(this, "timeRange");
|
|
42
42
|
__publicField(this, "pendingQueryCount", 0);
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var GrafanaPage = require('./GrafanaPage.js');
|
|
4
4
|
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
5
8
|
class DataSourceConfigPage extends GrafanaPage.GrafanaPage {
|
|
6
9
|
constructor(ctx, datasource) {
|
|
7
10
|
super(ctx);
|
|
8
|
-
this
|
|
11
|
+
__publicField(this, "datasource", datasource);
|
|
9
12
|
}
|
|
10
13
|
async deleteDataSource() {
|
|
11
14
|
await this.ctx.request.delete(this.ctx.selectors.apis.DataSource.datasourceByUID(this.datasource.uid));
|
|
@@ -35,7 +35,7 @@ const TABLE_PANEL_TEXT = "Table";
|
|
|
35
35
|
class ExplorePage extends GrafanaPage.GrafanaPage {
|
|
36
36
|
constructor(ctx, args) {
|
|
37
37
|
super(ctx, args);
|
|
38
|
-
this
|
|
38
|
+
__publicField(this, "args", args);
|
|
39
39
|
__publicField(this, "datasource");
|
|
40
40
|
__publicField(this, "timeRange");
|
|
41
41
|
__publicField(this, "timeSeriesPanel");
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var utils = require('../utils.js');
|
|
4
4
|
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
8
|
class GrafanaPage {
|
|
6
9
|
constructor(ctx, pageArgs = {}) {
|
|
7
|
-
this
|
|
8
|
-
this
|
|
10
|
+
__publicField(this, "ctx", ctx);
|
|
11
|
+
__publicField(this, "pageArgs", pageArgs);
|
|
9
12
|
}
|
|
10
13
|
async navigate(url, options) {
|
|
11
14
|
let queryParams = options?.queryParams ? options.queryParams : this.pageArgs.queryParams;
|
|
@@ -35,8 +35,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
35
35
|
class PanelEditPage extends GrafanaPage.GrafanaPage {
|
|
36
36
|
constructor(ctx, args) {
|
|
37
37
|
super(ctx, args);
|
|
38
|
-
this
|
|
39
|
-
this
|
|
38
|
+
__publicField(this, "ctx", ctx);
|
|
39
|
+
__publicField(this, "args", args);
|
|
40
40
|
__publicField(this, "datasource");
|
|
41
41
|
__publicField(this, "timeRange");
|
|
42
42
|
__publicField(this, "panel");
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var GrafanaPage = require('./GrafanaPage.js');
|
|
4
4
|
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
8
|
class PluginConfigPage extends GrafanaPage.GrafanaPage {
|
|
6
9
|
constructor(ctx, args) {
|
|
7
10
|
super(ctx, args);
|
|
8
|
-
this
|
|
9
|
-
this
|
|
11
|
+
__publicField(this, "ctx", ctx);
|
|
12
|
+
__publicField(this, "args", args);
|
|
10
13
|
}
|
|
11
14
|
/**
|
|
12
15
|
* Navigates to the app plugin config page.
|
|
@@ -26,12 +26,12 @@ var semver__namespace = /*#__PURE__*/_interopNamespaceDefault(semver);
|
|
|
26
26
|
|
|
27
27
|
var __defProp = Object.defineProperty;
|
|
28
28
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
29
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
29
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
30
30
|
class VariableEditPage extends GrafanaPage.GrafanaPage {
|
|
31
31
|
constructor(ctx, args) {
|
|
32
32
|
super(ctx, args);
|
|
33
|
-
this
|
|
34
|
-
this
|
|
33
|
+
__publicField(this, "ctx", ctx);
|
|
34
|
+
__publicField(this, "args", args);
|
|
35
35
|
__publicField(this, "datasource");
|
|
36
36
|
this.datasource = new DataSourcePicker.DataSourcePicker(ctx);
|
|
37
37
|
}
|
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
var GrafanaPage = require('./GrafanaPage.js');
|
|
4
4
|
var VariableEditPage = require('./VariableEditPage.js');
|
|
5
5
|
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
9
|
class VariablePage extends GrafanaPage.GrafanaPage {
|
|
7
10
|
constructor(ctx, dashboard) {
|
|
8
11
|
super(ctx, dashboard);
|
|
9
|
-
this
|
|
10
|
-
this
|
|
12
|
+
__publicField(this, "ctx", ctx);
|
|
13
|
+
__publicField(this, "dashboard", dashboard);
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
16
|
* Navigates to the variable list page. If a dashboard uid was not provided, it's assumed that it's a new dashboard.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "3.8.0",
|
|
3
|
+
"version": "3.8.1-canary.2678.26587359388.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"uuid": "^13.0.0",
|
|
55
55
|
"yaml": "^2.3.4"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "d9f66da8028dc528c481ec13977f8629794a1988"
|
|
58
58
|
}
|