@grafana/plugin-e2e 1.12.3 → 1.12.4-canary.1362.af2962a.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.
|
@@ -120,7 +120,12 @@ class DashboardPage extends GrafanaPage_1.GrafanaPage {
|
|
|
120
120
|
if (this.dashboard?.uid) {
|
|
121
121
|
await this.getByGrafanaSelector(components.PageToolbar.item('Add panel')).click();
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
if (semver.gte(this.ctx.grafanaVersion, '8.0.0') && semver.lte(this.ctx.grafanaVersion, '8.5.0')) {
|
|
124
|
+
await this.getByGrafanaSelector('Add new panel').click();
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
await this.getByGrafanaSelector(pages.AddDashboard.addNewPanel).click();
|
|
128
|
+
}
|
|
124
129
|
}
|
|
125
130
|
const panelId = await this.ctx.page.evaluate(() => {
|
|
126
131
|
const urlParams = new URLSearchParams(window.location.search);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.4-canary.1362.af2962a.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"start": "cls || clear"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "af2962aefaaa4cb94ed1f7703251e1b93dff826b"
|
|
61
61
|
}
|