ci: add Playwright E2E job + test:e2e script

This commit is contained in:
saravanakumardb1 2026-03-28 00:35:42 -07:00
parent 8e26b91ae1
commit f05b7474f3
2 changed files with 23 additions and 1 deletions

View File

@ -81,3 +81,23 @@ jobs:
- name: Mobile typecheck
run: pnpm --filter @notelett/mobile run typecheck
e2e:
name: E2E — Playwright
runs-on: ubuntu-latest
defaults:
run:
working-directory: /Users/sd9235/code/mygh/learning_ai_notes
steps:
- name: Pull latest
run: git pull --ff-only origin main || true
- name: Install workspace dependencies
run: HUSKY=0 pnpm install --frozen-lockfile
- name: Install Playwright browsers
run: pnpm --filter @notelett/web exec playwright install --with-deps chromium
- name: Run E2E tests
run: pnpm --filter @notelett/web run test:e2e
continue-on-error: true

View File

@ -10,7 +10,8 @@
"lint": "eslint .",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"test:e2e": "playwright test"
},
"dependencies": {
"@bytelyst/api-client": "^0.1.0",
@ -22,6 +23,7 @@
"@bytelyst/platform-client": "^0.1.0",
"@bytelyst/react-auth": "^0.1.0",
"@bytelyst/telemetry-client": "^0.1.0",
"@bytelyst/ui": "file:../../learning_ai_common_plat/packages/ui",
"lucide-react": "^0.575.0",
"next": "16.1.6",
"react": "19.2.0",