@grafana/plugin-e2e 2.1.9-canary.2053.17260283567.0 → 2.1.9-canary.2053.17260432343.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.
|
@@ -151,21 +151,22 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
|
|
|
151
151
|
*/
|
|
152
152
|
async evaluate(options) {
|
|
153
153
|
await this.ctx.page.waitForTimeout(1e3);
|
|
154
|
+
console.log({ fulfilled: this.fulfilled });
|
|
154
155
|
if (this.fulfilled) {
|
|
155
|
-
await this.ctx.page.unroute(this.ctx.selectors.apis.Alerting.eval);
|
|
156
156
|
this.fulfilled = false;
|
|
157
157
|
}
|
|
158
158
|
if (semver__namespace.gte(this.ctx.grafanaVersion, "10.0.0")) {
|
|
159
|
-
this.ctx.page.route(this.ctx.selectors.apis.Alerting.eval, async (route) => {
|
|
159
|
+
await this.ctx.page.route(this.ctx.selectors.apis.Alerting.eval, async (route) => {
|
|
160
160
|
const response = await route.fetch();
|
|
161
161
|
if (!response.ok()) {
|
|
162
162
|
this.fulfilled = true;
|
|
163
|
-
|
|
163
|
+
await route.fulfill({ response });
|
|
164
|
+
return;
|
|
164
165
|
}
|
|
165
166
|
let body = await response.json();
|
|
166
167
|
const statuses = Object.keys(body.results).map((key) => body.results[key].status);
|
|
167
168
|
this.fulfilled = true;
|
|
168
|
-
route.fulfill({
|
|
169
|
+
await route.fulfill({
|
|
169
170
|
response,
|
|
170
171
|
status: statuses.every((status) => status >= 200 && status < 300) ? 200 : statuses[0]
|
|
171
172
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/plugin-e2e",
|
|
3
|
-
"version": "2.1.9-canary.2053.
|
|
3
|
+
"version": "2.1.9-canary.2053.17260432343.0",
|
|
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": "035c18948b61bd9d13128252ac9b7961b1d12f31"
|
|
51
51
|
}
|