@grafana/plugin-e2e 2.1.9-canary.2053.17286332574.0 → 2.1.9
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.
|
@@ -60,12 +60,12 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
|
|
|
60
60
|
"alertingQueryAndExpressionsStepMode"
|
|
61
61
|
);
|
|
62
62
|
if (alertingQueryAndExpressionsStepMode) {
|
|
63
|
-
await test.expect(this.advancedModeSwitch
|
|
63
|
+
await test.expect(this.advancedModeSwitch).toBeVisible();
|
|
64
|
+
await test.expect(this.advancedModeSwitch).toHaveCount(1);
|
|
64
65
|
return true;
|
|
65
66
|
}
|
|
66
|
-
await test.expect(this.advancedModeSwitch
|
|
67
|
-
|
|
68
|
-
});
|
|
67
|
+
await test.expect(this.advancedModeSwitch).not.toBeVisible();
|
|
68
|
+
await test.expect(this.advancedModeSwitch).toHaveCount(0);
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
/*
|
|
@@ -149,12 +149,6 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
|
|
|
149
149
|
await this.ctx.page.waitForTimeout(1e3);
|
|
150
150
|
if (semver__namespace.gte(this.ctx.grafanaVersion, "10.0.0")) {
|
|
151
151
|
await this.ctx.page.route(this.ctx.selectors.apis.Alerting.eval, async (route) => {
|
|
152
|
-
if (this.ctx.page.isClosed()) {
|
|
153
|
-
return;
|
|
154
|
-
}
|
|
155
|
-
if (!this.ctx.page.context()?.browser()?.isConnected()) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
152
|
const response = await route.fetch();
|
|
159
153
|
if (!response.ok()) {
|
|
160
154
|
await route.fulfill({ response });
|
|
@@ -176,7 +170,7 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
|
|
|
176
170
|
if (semver__namespace.lt(this.ctx.grafanaVersion, "11.1.0")) {
|
|
177
171
|
evaluateButton = this.ctx.page.getByRole("button", { name: "Preview", exact: true });
|
|
178
172
|
}
|
|
179
|
-
await test.expect(evaluateButton
|
|
173
|
+
await test.expect(evaluateButton).toBeVisible();
|
|
180
174
|
const evalReq = this.ctx.page.waitForRequest((req) => req.url().includes(this.ctx.selectors.apis.Alerting.eval), {
|
|
181
175
|
timeout: 5e3
|
|
182
176
|
}).catch(async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "2.1.9
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"uuid": "^11.0.2",
|
|
48
48
|
"yaml": "^2.3.4"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "3b3ae52837650dcf0500d827edaf5d11e2393a28"
|
|
51
51
|
}
|