mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
Playwright E2E suite (not working yet)
This commit is contained in:
parent
f534cd79b7
commit
68050b56bc
13 changed files with 425 additions and 16 deletions
|
|
@ -3,27 +3,35 @@
|
|||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"prebuild": "npm run proto:generate && node prebuild.js",
|
||||
"prestart": "npm run proto:generate && node prebuild.js",
|
||||
"build": "vite build",
|
||||
"start": "vite",
|
||||
"preview": "vite preview",
|
||||
"diagram": "npm run diagram:simple && npm run diagram:detailed && npm run diagram:flow",
|
||||
"diagram:simple": "npx -y -p @mermaid-js/mermaid-cli -p puppeteer mmdc -i architecture/simple.mmd -o architecture/simple.png -b white -s 2",
|
||||
"diagram:detailed": "npx -y -p @mermaid-js/mermaid-cli -p puppeteer mmdc -i architecture/detailed.mmd -o architecture/detailed.png -b white -s 2",
|
||||
"diagram:flow": "npx -y -p @mermaid-js/mermaid-cli -p puppeteer mmdc -i architecture/flow.mmd -o architecture/flow.png -b white -s 2",
|
||||
"golden": "npm run lint && npm run test && npm run test:integration",
|
||||
"golden:coverage": "npm run lint && npm run test:coverage && npm run test:integration:coverage",
|
||||
"golden:full": "npm run golden && npm run test:e2e",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint src --fix",
|
||||
"test": "vitest run",
|
||||
"test:coverage": "npm run test -- --coverage",
|
||||
"test:watch": "vitest",
|
||||
"test:integration": "vitest run --config vitest.integration.config.ts",
|
||||
"test:integration:coverage": "npm run test:integration -- --coverage",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint src --fix",
|
||||
"golden": "npm run lint && npm run test && npm run test:integration",
|
||||
"golden:coverage": "npm run lint && npm run test:coverage && npm run test:integration:coverage",
|
||||
"test:e2e": "bash -c \"npm run test:e2e:up && (npm run test:e2e:run; EC=$?; npm run test:e2e:down; exit $EC)\"",
|
||||
"test:e2e:open": "playwright test --config e2e/playwright.config.ts --ui",
|
||||
"test:e2e:run": "playwright test --config e2e/playwright.config.ts",
|
||||
"test:e2e:up": "docker compose -f e2e/docker/docker-compose.e2e.yml up -d --build",
|
||||
"test:e2e:down": "docker compose -f e2e/docker/docker-compose.e2e.yml down -v",
|
||||
"test:e2e:install-browsers": "npx playwright install --with-deps chromium",
|
||||
"pretest:e2e": "npm run test:e2e:install-browsers",
|
||||
"prebuild": "npm run proto:generate && node prebuild.js",
|
||||
"prepare": "cd .. && husky",
|
||||
"translate": "node prebuild.js -i18nOnly",
|
||||
"prestart": "npm run proto:generate && node prebuild.js",
|
||||
"preview": "vite preview",
|
||||
"proto:generate": "npx buf generate",
|
||||
"diagram": "npm run diagram:simple && npm run diagram:detailed && npm run diagram:flow",
|
||||
"diagram:simple": "npx -y -p @mermaid-js/mermaid-cli -p puppeteer mmdc -i architecture/simple.mmd -o architecture/simple.png -b white -s 2",
|
||||
"diagram:detailed": "npx -y -p @mermaid-js/mermaid-cli -p puppeteer mmdc -i architecture/detailed.mmd -o architecture/detailed.png -b white -s 2",
|
||||
"diagram:flow": "npx -y -p @mermaid-js/mermaid-cli -p puppeteer mmdc -i architecture/flow.mmd -o architecture/flow.png -b white -s 2"
|
||||
"start": "vite",
|
||||
"translate": "node prebuild.js -i18nOnly"
|
||||
},
|
||||
"dependencies": {
|
||||
"@bufbuild/protobuf": "^2.11.0",
|
||||
|
|
@ -59,6 +67,8 @@
|
|||
"@bufbuild/buf": "^1.68.1",
|
||||
"@bufbuild/protoc-gen-es": "^2.11.0",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@playwright/test": "^1.51.0",
|
||||
"@types/ws": "^8.5.12",
|
||||
"@mui/types": "^9.0.0",
|
||||
"@testing-library/dom": "^10.4.1",
|
||||
"@testing-library/jest-dom": "^6.4.0",
|
||||
|
|
@ -86,7 +96,8 @@
|
|||
"typescript": "~6.0",
|
||||
"typescript-eslint": "^8.58.2",
|
||||
"vite": "^8.0.8",
|
||||
"vitest": "^4.1.4"
|
||||
"vitest": "^4.1.4",
|
||||
"ws": "^8.18.0"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue