@grafana/plugin-e2e 0.11.0-canary.698.89df8be.0 → 0.11.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.
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const api_1 = require("../api");
4
+ (0, api_1.test)('authenticate', async ({ login }) => {
5
+ await login();
6
+ });
@@ -32,31 +32,16 @@ class ExplorePage extends GrafanaPage_1.GrafanaPage {
32
32
  let locator = this.getByTestIdOrAriaLabel(this.ctx.selectors.components.Panels.Panel.title(suffix), {
33
33
  startsWith: true,
34
34
  });
35
- // having to use these selectors is unfortunate, but the Explore page did not use data-testid on the panels before Grafana 10.
36
35
  if (semver.lt(this.ctx.grafanaVersion, '9.3.0')) {
37
- throw new Error(`Can't locate panels on Explore page for Grafana versions < 9.3.0`);
36
+ // seems there is no way to get the locator for the panels in Grafana versions < 9.3.0
37
+ throw new Error(`Can't locate panels on Explore page for Grafana versions < 9.3.0. Please skip this test.`);
38
38
  }
39
39
  else if (semver.lt(this.ctx.grafanaVersion, '10.0.0')) {
40
+ // having to use these selectors is unfortunate, but the Explore page did not use data-testid on the panels before Grafana 10.
40
41
  locator = page.getByRole('button', { name: text }).locator('..');
41
42
  }
42
43
  return locator;
43
44
  }
44
- // private getPanelLocators() {
45
- // const page = this.ctx.page;
46
- // const titleSelector = this.ctx.selectors.components.Panels.Panel.title;
47
- // let timeSeriesPanelLocator = this.getByTestIdOrAriaLabel(titleSelector(TIME_SERIES_PANEL_SELECTOR_SUFFIX));
48
- // let tablePanelLocator = this.getByTestIdOrAriaLabel(titleSelector(TABLE_PANEL_SELECTOR_SUFFIX));
49
- // let logsPanelLocator = this.getByTestIdOrAriaLabel(titleSelector(LOGS_PANEL_SELECTOR_SUFFIX));
50
- // // having to use these selectors is unfortunate, but the Explore page did not use data-testid on the panels before Grafana 10.
51
- // if (semver.lt(this.ctx.grafanaVersion, '9.3.0')) {
52
- // throw new Error(`Can't locate panels on Explore page for Grafana versions < 9.3.0`);
53
- // } else if (semver.lt(this.ctx.grafanaVersion, '10.0.0')) {
54
- // timeSeriesPanelLocator = page.getByRole('button', { name: TIME_SERIES_PANEL_TEXT }).locator('..');
55
- // tablePanelLocator = page.getByRole('button', { name: TABLE_PANEL_TEXT }).locator('..');
56
- // logsPanelLocator = page.getByRole('button', { name: LOGS_PANEL_TEXT }).locator('..');
57
- // }
58
- // return { timeSeriesPanelLocator, tablePanelLocator, logsPanelLocator };
59
- // }
60
45
  /**
61
46
  * Navigates to the explore page.
62
47
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-e2e",
3
- "version": "0.11.0-canary.698.89df8be.0",
3
+ "version": "0.11.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -45,5 +45,5 @@
45
45
  "semver": "^7.5.4",
46
46
  "uuid": "^9.0.1"
47
47
  },
48
- "gitHead": "89df8be7ce8ffc3a78214ff9c00e1a8a55082187"
48
+ "gitHead": "d3975db9cdaea831d6bf28f18367b136e366adde"
49
49
  }