@grafana/plugin-e2e 1.3.1 → 1.3.2

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.
@@ -70,11 +70,11 @@ class Panel extends GrafanaPage_1.GrafanaPage {
70
70
  // before 9.5.0, there were no proper selectors for the panel menu items
71
71
  if (semver.lt(this.ctx.grafanaVersion, '9.5.0')) {
72
72
  panelMenu = this.locator.getByRole('heading');
73
- this.ctx.page.locator(`[aria-label="Panel header item ${options?.parentItem}"]`);
74
- this.ctx.page.locator(`[aria-label="Panel header item ${item}"]`);
73
+ parentMenuItem = this.ctx.page.getByText(options?.parentItem ?? '');
74
+ menuItem = this.ctx.page.getByRole('menu').getByText(item);
75
75
  }
76
76
  await panelMenu.click({ force: true });
77
- options?.parentItem && parentMenuItem.hover();
77
+ options?.parentItem && (await parentMenuItem.hover());
78
78
  await menuItem.click();
79
79
  }
80
80
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-e2e",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -55,5 +55,5 @@
55
55
  "start": "cls || clear"
56
56
  }
57
57
  },
58
- "gitHead": "66e2f6c182e7e2f82fe8ed94ff6b141d16683af5"
58
+ "gitHead": "f40350d6158ef15563f72cf491e2b9eb3eceea15"
59
59
  }