Skip to content

Commit

Permalink
e2e plugin added; cypress was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
vitPinchuk committed Apr 16, 2024
1 parent a4aefa5 commit 44f1cbc
Show file tree
Hide file tree
Showing 14 changed files with 7,908 additions and 12,185 deletions.
6 changes: 5 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ webpack.config.ts
coverage/
cypress/
dist/
websocket/
websocket/

# Playwright tests
playwright.config.ts
test/panel.spec.ts
10 changes: 3 additions & 7 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Build
run: npm run build

- name: Setup playwright browser
run: npx playwright install --with-deps chromium

- name: Start Grafana
run: docker-compose up -d

Expand All @@ -35,10 +38,3 @@ jobs:

- name: Stop Grafana
run: docker-compose down

- uses: actions/upload-artifact@v4
if: failure()
with:
path: |
cypress/videos
cypress/screenshots/actual
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Daily E2E using Grafana Main

on:
schedule:
- cron: '0 0 * * *'

jobs:
tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Setup playwright browser
run: npx playwright install --with-deps chromium

- name: Start Grafana
run: docker-compose -f test/docker-compose.yml up -d

- name: Run e2e tests
run: npm run e2e

- name: Stop Grafana
run: docker-compose down
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ e2e-results/
.idea
.DS_Store

# Cypress
cypress/report.json
cypress/videos/
cypress/screenshots/actual
# Playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/playwright/.auth/
46 changes: 0 additions & 46 deletions cypress/integration/01-view-panel.test.ts

This file was deleted.

Binary file not shown.
5 changes: 0 additions & 5 deletions cypress/tsconfig.json

This file was deleted.

Loading

0 comments on commit 44f1cbc

Please sign in to comment.