@grafana/plugin-e2e 1.18.0-canary.1490.eee06a1.0 → 1.18.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.
@@ -22,15 +22,15 @@ export declare class AlertRuleEditPage extends GrafanaPage {
22
22
  * @deprecated Use getQueryRow instead
23
23
  * Returns an instance of the {@link AlertRuleQuery} class for a query in the query and expression step (step 2)
24
24
  *
25
- * @param refId is optional. If not provided, it will return query row with refId 'A' in Grafana versions <11.5.
26
- * In Grafana versions >=11.5 where advanced mode is supported, it will return the default query if advanced mode
25
+ * @param refId is optional. If not provided, it will return query row with refId 'A' in Grafana versions <11.6.
26
+ * In Grafana versions >=11.6 where advanced mode is supported, it will return the default query if advanced mode
27
27
  * is not enabled. If advanced mode is enabled, it will return the a query by refId.
28
28
  */
29
29
  getAlertRuleQueryRow(refId?: string): AlertRuleQuery;
30
30
  /**
31
31
  * Clicks the "Add query" button and returns an instance of the {@link AlertRuleQuery} class for the new query row.
32
32
  *
33
- * Since Grafana 11.5, this method is only available if advanced mode is enabled. Use enableQueryAdvancedMode() method to enable it.
33
+ * Since Grafana 11.6, this method is only available if advanced mode is enabled. Use enableQueryAdvancedMode() method to enable it.
34
34
  */
35
35
  clickAddQueryRow(): Promise<AlertRuleQuery>;
36
36
  /**
@@ -73,7 +73,7 @@ class AlertRuleEditPage extends GrafanaPage_1.GrafanaPage {
73
73
  }
74
74
  /*
75
75
  * Enables the advanced mode for the query and expression step.
76
- * Only available in Grafana 11.5.0 and later. If advanced mode is not supported, this method will do nothing.
76
+ * Only available in Grafana 11.6.0 and later. If advanced mode is not supported, this method will do nothing.
77
77
  */
78
78
  async enableAdvancedQueryMode() {
79
79
  const advancedModeSupported = await this.isAdvancedModeSupported();
@@ -85,7 +85,7 @@ class AlertRuleEditPage extends GrafanaPage_1.GrafanaPage {
85
85
  }
86
86
  /*
87
87
  * Disabled the advanced mode for the query and expression step.
88
- * Advanced mode is enabled by default in Grafana 11.5.0 and later.
88
+ * Advanced mode is enabled by default in Grafana 11.6.0 and later.
89
89
  */
90
90
  async disableAdvancedQueryMode() {
91
91
  const advancedModeSupported = await this.isAdvancedModeSupported();
@@ -111,8 +111,8 @@ class AlertRuleEditPage extends GrafanaPage_1.GrafanaPage {
111
111
  * @deprecated Use getQueryRow instead
112
112
  * Returns an instance of the {@link AlertRuleQuery} class for a query in the query and expression step (step 2)
113
113
  *
114
- * @param refId is optional. If not provided, it will return query row with refId 'A' in Grafana versions <11.5.
115
- * In Grafana versions >=11.5 where advanced mode is supported, it will return the default query if advanced mode
114
+ * @param refId is optional. If not provided, it will return query row with refId 'A' in Grafana versions <11.6.
115
+ * In Grafana versions >=11.6 where advanced mode is supported, it will return the default query if advanced mode
116
116
  * is not enabled. If advanced mode is enabled, it will return the a query by refId.
117
117
  */
118
118
  getAlertRuleQueryRow(refId = 'A') {
@@ -124,12 +124,12 @@ class AlertRuleEditPage extends GrafanaPage_1.GrafanaPage {
124
124
  /**
125
125
  * Clicks the "Add query" button and returns an instance of the {@link AlertRuleQuery} class for the new query row.
126
126
  *
127
- * Since Grafana 11.5, this method is only available if advanced mode is enabled. Use enableQueryAdvancedMode() method to enable it.
127
+ * Since Grafana 11.6, this method is only available if advanced mode is enabled. Use enableQueryAdvancedMode() method to enable it.
128
128
  */
129
129
  async clickAddQueryRow() {
130
130
  const advancedModeSupported = await this.isAdvancedModeSupported();
131
131
  if (advancedModeSupported && !(await this.advancedModeSwitch.isChecked())) {
132
- throw new Error('Since Grafana 11.5, you need to enable advanced mode to add queries. Use enableQueryAdvancedMode() method to enable it.');
132
+ throw new Error('Since Grafana 11.6, you need to enable advanced mode to add queries. Use enableQueryAdvancedMode() method to enable it.');
133
133
  }
134
134
  await this.getByGrafanaSelector(this.ctx.selectors.components.QueryTab.addQuery).click();
135
135
  const locator = this.getByGrafanaSelector(this.ctx.selectors.components.QueryEditorRows.rows).last();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-e2e",
3
- "version": "1.18.0-canary.1490.eee06a1.0",
3
+ "version": "1.18.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -36,12 +36,12 @@
36
36
  "@playwright/test": "^1.41.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@playwright/test": "^1.50.0",
39
+ "@playwright/test": "^1.50.1",
40
40
  "@types/uuid": "^10.0.0",
41
41
  "dotenv": "^16.4.7"
42
42
  },
43
43
  "dependencies": {
44
- "@grafana/e2e-selectors": "^11.5.0-220285",
44
+ "@grafana/e2e-selectors": "^11.6.0-221763",
45
45
  "semver": "^7.5.4",
46
46
  "uuid": "^11.0.2",
47
47
  "yaml": "^2.3.4"
@@ -55,5 +55,5 @@
55
55
  "start": "cls || clear"
56
56
  }
57
57
  },
58
- "gitHead": "eee06a1a011b6e99fb2b226183f93ef3511bd0dc"
58
+ "gitHead": "9d8671c55a6c3508807e8721bae5ef055beb1ab7"
59
59
  }