From fadff3bc1925912bc4e5772dc0dfe1c236ac5c99 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Wed, 30 Jul 2025 22:17:55 +0200 Subject: [PATCH] test(e2e): add command to run single test file - Add npm run e2e:playwright:file command for running individual test files - Update CLAUDE.md documentation with all Playwright commands - Example usage: npm run e2e:playwright:file tests/work-view/work-view.spec.ts --- CLAUDE.md | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 88eacda4f..58729c782 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -56,6 +56,7 @@ npm run test:file - `npm run e2e:playwright:quick` - Run tests with minimal output (faster debugging) - `npm run e2e:playwright:summary` - Show concise test summary after run - `npm run e2e:playwright:failures` - Show only failing tests + - `npm run e2e:playwright:file ` - Run a single test file (e.g., `npm run e2e:playwright:file tests/work-view/work-view.spec.ts`) - Linting: `npm run lint` - ESLint for TypeScript, Stylelint for SCSS ## Architecture Overview diff --git a/package.json b/package.json index 3b0c27450..f7bfcc600 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "e2e:playwright:failures": "cd e2e-playwright && npx playwright test --reporter=list --grep-invert @skip || true", "e2e:playwright:summary": "cd e2e-playwright && node ../tools/test-summary.js", "e2e:playwright:quick": "cd e2e-playwright && npx playwright test --config=playwright.config.minimal.ts", + "e2e:playwright:file": "cd e2e-playwright && npx playwright test", "electron": "NODE_ENV=PROD electron .", "electron:build": "tsc -p electron/tsconfig.electron.json", "electron:watch": "tsc -p electron/tsconfig.electron.json --watch",