@grafana/plugin-e2e 2.1.9-canary.2053.17266331895.0 → 2.1.9-canary.2053.17286332574.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.
@@ -60,10 +60,12 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
60
60
  "alertingQueryAndExpressionsStepMode"
61
61
  );
62
62
  if (alertingQueryAndExpressionsStepMode) {
63
- await test.expect(this.advancedModeSwitch).toBeVisible();
63
+ await test.expect(this.advancedModeSwitch, "expect(this.advancedModeSwitch).toBeVisible()").toBeVisible();
64
64
  return true;
65
65
  }
66
- await test.expect(this.advancedModeSwitch).toBeHidden({ timeout: 1e3 * 10 });
66
+ await test.expect(this.advancedModeSwitch, "expect(this.advancedModeSwitch).toBeHidden()").toBeHidden({
67
+ timeout: 1e3 * 10
68
+ });
67
69
  return false;
68
70
  }
69
71
  /*
@@ -147,6 +149,12 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
147
149
  await this.ctx.page.waitForTimeout(1e3);
148
150
  if (semver__namespace.gte(this.ctx.grafanaVersion, "10.0.0")) {
149
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
+ }
150
158
  const response = await route.fetch();
151
159
  if (!response.ok()) {
152
160
  await route.fulfill({ response });
@@ -168,7 +176,7 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
168
176
  if (semver__namespace.lt(this.ctx.grafanaVersion, "11.1.0")) {
169
177
  evaluateButton = this.ctx.page.getByRole("button", { name: "Preview", exact: true });
170
178
  }
171
- await test.expect(evaluateButton).toBeVisible();
179
+ await test.expect(evaluateButton, "expect(evaluateButton).toBeVisible()").toBeVisible();
172
180
  const evalReq = this.ctx.page.waitForRequest((req) => req.url().includes(this.ctx.selectors.apis.Alerting.eval), {
173
181
  timeout: 5e3
174
182
  }).catch(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-e2e",
3
- "version": "2.1.9-canary.2053.17266331895.0",
3
+ "version": "2.1.9-canary.2053.17286332574.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": "eeb2b4e49880f46165187bf88045ae04bc2c5d82"
50
+ "gitHead": "d2dcb615d23372c617c31b791b8e66eaa1ea1ac8"
51
51
  }