Skip to content

Commit 175b9db

Browse files
Plataneclaude
andcommitted
Migrate e2e tests from Cypress to Playwright
Replace deprecated @grafana/e2e (Cypress) with @grafana/plugin-e2e (Playwright). Add config editor tests and provisioned datasource. Bump default Grafana version to 12.4.0 (required for jsx-runtime external). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e3ff99e commit 175b9db

11 files changed

Lines changed: 1086 additions & 5422 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ jobs:
101101
- name: Install dependencies
102102
run: npm ci
103103

104+
- name: Install Playwright
105+
run: npx playwright install --with-deps chromium
106+
104107
- name: Start Grafana (${{ matrix.GRAFANA_IMAGE.name }}:${{ matrix.GRAFANA_IMAGE.version }})
105108
run: docker compose up -d --build
106109
env:

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ artifacts/
3131
work/
3232
ci/
3333
e2e-results/
34-
**/cypress/videos
35-
**/cypress/report.json
34+
playwright-report/
35+
test-results/
36+
playwright/.auth/
3637

3738
# Editor
3839
.idea

cypress.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

cypress/integration/01-smoke.spec.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
build:
1717
context: ./.config
1818
args:
19-
grafana_version: ${GRAFANA_VERSION:-12.1.0}
19+
grafana_version: ${GRAFANA_VERSION:-12.4.0}
2020
grafana_image: ${GRAFANA_IMAGE:-grafana-oss}
2121
ports:
2222
- 3000:3000/tcp

0 commit comments

Comments
 (0)