@grafana/plugin-e2e 0.11.0 → 0.11.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.
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExplorePage = void 0;
|
|
4
4
|
const semver = require('semver');
|
|
5
|
-
const test_1 = require("@playwright/test");
|
|
6
5
|
const DataSourcePicker_1 = require("./DataSourcePicker");
|
|
7
6
|
const GrafanaPage_1 = require("./GrafanaPage");
|
|
8
7
|
const TimeRange_1 = require("./TimeRange");
|
|
@@ -51,12 +50,10 @@ class ExplorePage extends GrafanaPage_1.GrafanaPage {
|
|
|
51
50
|
/**
|
|
52
51
|
* Returns the locator for the query editor row with the given refId
|
|
53
52
|
*/
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
getQueryEditorRow(refId) {
|
|
54
|
+
return this.getByTestIdOrAriaLabel(this.ctx.selectors.components.QueryEditorRows.rows).filter({
|
|
56
55
|
has: this.getByTestIdOrAriaLabel(this.ctx.selectors.components.QueryEditorRow.title(refId)),
|
|
57
56
|
});
|
|
58
|
-
await (0, test_1.expect)(locator).toBeVisible();
|
|
59
|
-
return locator;
|
|
60
57
|
}
|
|
61
58
|
/**
|
|
62
59
|
* Clicks the "Run Query" button in the refresh picker to run the query. Returns the response promise for the data query
|
|
@@ -88,12 +88,10 @@ class PanelEditPage extends GrafanaPage_1.GrafanaPage {
|
|
|
88
88
|
/**
|
|
89
89
|
* Returns the locator for the query editor row with the given refId
|
|
90
90
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
getQueryEditorRow(refId) {
|
|
92
|
+
return this.getByTestIdOrAriaLabel(this.ctx.selectors.components.QueryEditorRows.rows).filter({
|
|
93
93
|
has: this.getByTestIdOrAriaLabel(this.ctx.selectors.components.QueryEditorRow.title(refId)),
|
|
94
94
|
});
|
|
95
|
-
await (0, test_1.expect)(locator).toBeVisible();
|
|
96
|
-
return locator;
|
|
97
95
|
}
|
|
98
96
|
/**
|
|
99
97
|
* Clicks the "Refresh" button in the panel editor. Returns the response promise for the data query
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"semver": "^7.5.4",
|
|
46
46
|
"uuid": "^9.0.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4d0b0980d92161f248cc146751bea960ba84dc97"
|
|
49
49
|
}
|