@grafana/plugin-e2e 3.7.0-canary.2595.24895452230.0 → 3.7.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.
|
@@ -21,11 +21,15 @@ class Switch extends ComponentBase.ComponentBase {
|
|
|
21
21
|
}
|
|
22
22
|
async check(options) {
|
|
23
23
|
const target = await this.getSwitch(options);
|
|
24
|
-
|
|
24
|
+
if (!await this.element.isChecked()) {
|
|
25
|
+
await target.click({ force: true });
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
28
|
async uncheck(options) {
|
|
27
29
|
const target = await this.getSwitch(options);
|
|
28
|
-
|
|
30
|
+
if (await this.element.isChecked()) {
|
|
31
|
+
await target.click({ force: true });
|
|
32
|
+
}
|
|
29
33
|
}
|
|
30
34
|
async getSwitch(options) {
|
|
31
35
|
if (semver.lt(this.ctx.grafanaVersion, "11.3.0")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "3.7.0
|
|
3
|
+
"version": "3.7.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": "5ab982a27ffff628e5a718dce885b5599176aefa"
|
|
58
58
|
}
|