@grafana/plugin-e2e 3.0.2 → 3.0.3-canary.2339.19920048426.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.
|
@@ -101,8 +101,15 @@ class PanelEditPage extends GrafanaPage.GrafanaPage {
|
|
|
101
101
|
}
|
|
102
102
|
await this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.toggleVizPicker).click();
|
|
103
103
|
await this.getByGrafanaSelector(this.ctx.selectors.components.PluginVisualization.item(visualization)).click();
|
|
104
|
+
if (semver__namespace.lte(this.ctx.grafanaVersion, "12.3.0")) {
|
|
105
|
+
await test.expect(
|
|
106
|
+
this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.toggleVizPicker),
|
|
107
|
+
`Could not set visualization to ${visualization}. Ensure the panel is installed.`
|
|
108
|
+
).toHaveText(visualization);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
104
111
|
await test.expect(
|
|
105
|
-
this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.
|
|
112
|
+
this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.OptionsPane.header),
|
|
106
113
|
`Could not set visualization to ${visualization}. Ensure the panel is installed.`
|
|
107
114
|
).toHaveText(visualization);
|
|
108
115
|
}
|
|
@@ -123,7 +130,10 @@ class PanelEditPage extends GrafanaPage.GrafanaPage {
|
|
|
123
130
|
* Returns the name of the visualization currently selected in the panel editor
|
|
124
131
|
*/
|
|
125
132
|
getVisualizationName() {
|
|
126
|
-
|
|
133
|
+
if (semver__namespace.lte(this.ctx.grafanaVersion, "12.3.0")) {
|
|
134
|
+
return this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.toggleVizPicker);
|
|
135
|
+
}
|
|
136
|
+
return this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.OptionsPane.header);
|
|
127
137
|
}
|
|
128
138
|
/**
|
|
129
139
|
* Clicks the "Back to dashboard" button in the panel editor
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3-canary.2339.19920048426.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"dotenv": "^17.2.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@grafana/e2e-selectors": "^12.4.0-
|
|
45
|
+
"@grafana/e2e-selectors": "^12.4.0-19890644192",
|
|
46
46
|
"semver": "^7.5.4",
|
|
47
47
|
"uuid": "^13.0.0",
|
|
48
48
|
"yaml": "^2.3.4"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "67e71501debd8f21ae1bb36bd17ad28725c4d271"
|
|
51
51
|
}
|