@grafana/plugin-e2e 2.1.9-canary.2053.17266553343.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.
@@ -63,7 +63,7 @@ class AlertRuleEditPage extends GrafanaPage.GrafanaPage {
63
63
  await test.expect(this.advancedModeSwitch, "expect(this.advancedModeSwitch).toBeVisible()").toBeVisible();
64
64
  return true;
65
65
  }
66
- await test.expect(this.advancedModeSwitch, "expect(this.advancedModeSwitch).toBeVisible()").toBeHidden({
66
+ await test.expect(this.advancedModeSwitch, "expect(this.advancedModeSwitch).toBeHidden()").toBeHidden({
67
67
  timeout: 1e3 * 10
68
68
  });
69
69
  return false;
@@ -149,6 +149,12 @@ 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
+ }
152
158
  const response = await route.fetch();
153
159
  if (!response.ok()) {
154
160
  await route.fulfill({ response });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-e2e",
3
- "version": "2.1.9-canary.2053.17266553343.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": "ff6c4c2cb289d95c76c7cbcbc276bb5f6b0e3b1a"
50
+ "gitHead": "d2dcb615d23372c617c31b791b8e66eaa1ea1ac8"
51
51
  }