@grafana/plugin-e2e 3.0.3-canary.2339.19920048426.0 → 3.0.3

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.
@@ -101,15 +101,9 @@ class PanelEditPage extends GrafanaPage.GrafanaPage {
101
101
  }
102
102
  await this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.toggleVizPicker).click();
103
103
  await this.getByGrafanaSelector(this.ctx.selectors.components.PluginVisualization.item(visualization)).click();
104
- if (semver__namespace.lte(this.ctx.grafanaVersion, "12.3.0")) {
105
- await test.expect(
106
- this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.toggleVizPicker),
107
- `Could not set visualization to ${visualization}. Ensure the panel is installed.`
108
- ).toHaveText(visualization);
109
- return;
110
- }
104
+ const vizSelector = semver__namespace.lte(this.ctx.grafanaVersion, "12.3.0") ? this.ctx.selectors.components.PanelEditor.toggleVizPicker : this.ctx.selectors.components.PanelEditor.OptionsPane.header;
111
105
  await test.expect(
112
- this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.OptionsPane.header),
106
+ this.getByGrafanaSelector(vizSelector),
113
107
  `Could not set visualization to ${visualization}. Ensure the panel is installed.`
114
108
  ).toHaveText(visualization);
115
109
  }
@@ -130,10 +124,8 @@ class PanelEditPage extends GrafanaPage.GrafanaPage {
130
124
  * Returns the name of the visualization currently selected in the panel editor
131
125
  */
132
126
  getVisualizationName() {
133
- if (semver__namespace.lte(this.ctx.grafanaVersion, "12.3.0")) {
134
- return this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.toggleVizPicker);
135
- }
136
- return this.getByGrafanaSelector(this.ctx.selectors.components.PanelEditor.OptionsPane.header);
127
+ const vizSelector = semver__namespace.lte(this.ctx.grafanaVersion, "12.3.0") ? this.ctx.selectors.components.PanelEditor.toggleVizPicker : this.ctx.selectors.components.PanelEditor.OptionsPane.header;
128
+ return this.getByGrafanaSelector(vizSelector);
137
129
  }
138
130
  /**
139
131
  * Clicks the "Back to dashboard" button in the panel editor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-e2e",
3
- "version": "3.0.3-canary.2339.19920048426.0",
3
+ "version": "3.0.3",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -47,5 +47,5 @@
47
47
  "uuid": "^13.0.0",
48
48
  "yaml": "^2.3.4"
49
49
  },
50
- "gitHead": "67e71501debd8f21ae1bb36bd17ad28725c4d271"
50
+ "gitHead": "185f02afed2645d41752d4453b80d7e50867cc7a"
51
51
  }