Added v2 playwright e2e tests and workflow action (#2379)

This commit is contained in:
Zane
2025-04-29 07:02:43 -07:00
committed by GitHub
parent 8d6c5ef6af
commit c8f63e3f91
15 changed files with 673 additions and 39 deletions
+13 -3
View File
@@ -16,14 +16,22 @@
"test": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui --project=web --project=electron --workers=1",
"test:e2e:web": "playwright test --project=web --headed",
"test:e2e:web:headless": "playwright test --project=web",
"test:e2e:web:ui": "playwright test --ui --project=web",
"test:e2e:electron": "playwright test --project=electron --headed",
"test:e2e:electron:headless": "HEADLESS=true playwright test --project=electron",
"test:e2e:electron:ui": "playwright test --ui --project=electron",
"tsc": "tsc --noEmit",
"tsc:web": "tsc --project tsconfig.json --noEmit",
"tsc:electron": "tsc --project tsconfig.electron.json --noEmit",
"typecheck": "npm run tsc:web && npm run tsc:electron",
"lint": "eslint . && npm run lint:style",
"lint:fix": "eslint . --fix && npm run lint:style:fix",
"lint:style": "stylelint \"src/**/*.{css}\"",
"lint:style:fix": "stylelint \"src/**/*.{css}\" --fix",
"lint:style": "stylelint src/**/*.css",
"lint:style:fix": "stylelint src/**/*.css --fix",
"prettier": "prettier --check \"src/**/*.{ts,tsx,js,jsx,css}\" \"electron/**/*.{ts,tsx,js,jsx,css}\"",
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,css}\" \"electron/**/*.{ts,tsx,js,jsx,css}\"",
"format": "npm run prettier:fix && npm run lint:style:fix",
@@ -42,6 +50,7 @@
"@electron-forge/maker-zip": "^7.8.0",
"@electron-forge/plugin-vite": "^7.8.0",
"@electron-forge/shared-types": "^7.8.0",
"@playwright/test": "^1.42.1",
"@tailwindcss/postcss": "^4.1.4",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
@@ -71,6 +80,7 @@
"stylelint": "^16.19.1",
"stylelint-config-standard": "^38.0.0",
"tailwindcss": "^4.1.4",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"vite": "^6.3.3",
"vitest": "^3.1.2"
@@ -79,7 +89,7 @@
"src/**/*.{ts,tsx}": [
"eslint --fix --max-warnings 0 --no-warn-ignored",
"prettier --write",
"tsc --noemit"
"bash -c 'tsc --pretty --noEmit --project tsconfig.json'"
],
"src/**/*.{css,json}": [
"prettier --write",