@grafana/plugin-e2e 3.5.1-canary.2579.24510474417.0 → 3.5.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.
|
@@ -22,7 +22,7 @@ async function openSelect(component, options) {
|
|
|
22
22
|
async function selectByValueOrLabel(labelOrValue, menu, _ctx, options) {
|
|
23
23
|
const allOptions = getOption(menu);
|
|
24
24
|
let option = allOptions.getByText(labelOrValue, { exact: true });
|
|
25
|
-
if (!await option.count()) {
|
|
25
|
+
if (!await option.count() && await allOptions.count() === 1) {
|
|
26
26
|
option = allOptions.first();
|
|
27
27
|
}
|
|
28
28
|
const value = await option.textContent(options);
|
|
@@ -120,7 +120,7 @@ class DashboardPage extends GrafanaPage.GrafanaPage {
|
|
|
120
120
|
await this.getByGrafanaSelector(pages.Dashboard.Sidebar.addButton).click();
|
|
121
121
|
}
|
|
122
122
|
await this.getByGrafanaSelector(components.Sidebar.newPanelButton).click();
|
|
123
|
-
const configureButton = semver__namespace.
|
|
123
|
+
const configureButton = semver__namespace.lt(this.ctx.grafanaVersion, "13.1.0") ? this.getByGrafanaSelector(components.Sidebar.container).getByRole("button", { name: "Configure" }) : this.getByGrafanaSelector(components.Sidebar.configurePanelButton);
|
|
124
124
|
await configureButton.click();
|
|
125
125
|
} else if (semver__namespace.gte(this.ctx.grafanaVersion, "9.5.0")) {
|
|
126
126
|
let addButton = this.getByGrafanaSelector(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "3.5.1
|
|
3
|
+
"version": "3.5.1",
|
|
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": "bbe7431074aa667f5da9880f76fba803ba1b3f73"
|
|
58
58
|
}
|