feat: add ERP login debug tool with documentation

Add interactive debugging tool for ERP login flow analysis:
- Add tsx dependency for TypeScript script execution
- Add npm scripts: debug:erp-login and debug:config-path
- Add erp-login-debug.ts with automated login and element inspection
- Add comprehensive usage guide and quick reference documentation

The debug tool automates ERP login and provides pause points for
manual element inspection using browser DevTools or Playwright Inspector.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
test
2026-03-07 13:16:43 +08:00
parent c13be9e19a
commit 8e0c37bf74
5 changed files with 1258 additions and 2 deletions

View File

@@ -24,7 +24,9 @@
"test:coverage": "vitest run --coverage",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:report": "playwright show-report"
"test:e2e:report": "playwright show-report",
"debug:erp-login": "tsx src/main/tools/erp-login-debug.ts",
"debug:config-path": "tsx src/main/tools/config-path-debug.ts"
},
"dependencies": {
"@electron-toolkit/preload": "^3.0.2",
@@ -74,6 +76,7 @@
"tailwindcss": "^4.2.1",
"typescript": "^5.9.3",
"vite": "^7.2.6",
"vitest": "^4.0.18"
"vitest": "^4.0.18",
"tsx": "^4.19.3"
}
}