@grafana/create-plugin 7.1.8-canary.2575.7e50de0.0 → 7.2.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=20"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "0b0839dcde5b5112ca5fefdba94f42cd46a79838"
|
|
59
59
|
}
|
|
@@ -82,7 +82,7 @@ await page.getByRole('checkbox', { name: 'TLS Enabled' }).uncheck({ force: true
|
|
|
82
82
|
await expect(page.getByRole('checkbox', { name: 'TLS Enabled' })).not.toBeChecked();
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
**InlineSwitch** - use `
|
|
85
|
+
**InlineSwitch** - use `getByRole('switch', { name: /<label>/i })`. Like Checkbox, requires `{ force: true }`. Prefer `getByRole` over `getByLabel` — newer Grafana versions add `aria-label` to the `<label>` element itself, causing `getByLabel` to match multiple elements in strict mode.
|
|
86
86
|
|
|
87
87
|
```tsx
|
|
88
88
|
// component
|
|
@@ -93,8 +93,8 @@ await expect(page.getByRole('checkbox', { name: 'TLS Enabled' })).not.toBeChecke
|
|
|
93
93
|
|
|
94
94
|
```typescript
|
|
95
95
|
// test
|
|
96
|
-
await page.
|
|
97
|
-
await expect(page.
|
|
96
|
+
await page.getByRole('switch', { name: /TLS Enabled/i }).uncheck({ force: true });
|
|
97
|
+
await expect(page.getByRole('switch', { name: /TLS Enabled/i })).not.toBeChecked();
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
## Using the plugin-e2e API
|
|
@@ -7,7 +7,7 @@ services:
|
|
|
7
7
|
context: .
|
|
8
8
|
args:
|
|
9
9
|
grafana_image: ${GRAFANA_IMAGE:-{{~grafanaImage~}} }
|
|
10
|
-
grafana_version: ${GRAFANA_VERSION:-
|
|
10
|
+
grafana_version: ${GRAFANA_VERSION:-12.4.0}
|
|
11
11
|
development: ${DEVELOPMENT:-false}
|
|
12
12
|
anonymous_auth_enabled: ${ANONYMOUS_AUTH_ENABLED:-true}
|
|
13
13
|
ports:
|