From 41d0013bb442facf80d0591383800ca7772b925b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 22 Mar 2026 18:51:19 +0800 Subject: [PATCH] Update README and run-tests for Playwright migration Co-Authored-By: Claude Opus 4.6 --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3f799b4..6e69a6a 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ and [Tailwind CSS][tailwind]. | UI | PrimeVue 4, PrimeIcons, SweetAlert2 | | Visualization | Cytoscape.js (process maps), Chart.js (charts) | | HTTP | Axios with JWT refresh token handling | -| Testing | Vitest 4 (unit/component), Cypress 15 (E2E) | +| Testing | Vitest 4 (unit/component), [Playwright][playwright] (E2E), [MSW][msw] (API mocking) | | Linting | ESLint, Prettier | @@ -80,18 +80,18 @@ npx vitest run ### Run E2E tests -Build first, then run [Cypress][cypress] against the preview -server: +Build with MSW enabled first, then run [Playwright][playwright]: ```sh -npm run build +npm run build:e2e npm run test:e2e ``` -For interactive E2E development with the Vite dev server: +For interactive E2E development with the Playwright UI: ```sh -npm run test:e2e:dev +npm run build:e2e +npm run test:e2e:ui ``` @@ -169,6 +169,7 @@ Code quality improvements assisted by [Claude Code][claude-code]. [cytoscape]: https://js.cytoscape.org/ [chartjs]: https://www.chartjs.org/ [nodejs]: https://nodejs.org/ -[cypress]: https://www.cypress.io/ +[playwright]: https://playwright.dev/ +[msw]: https://mswjs.io/ [typedoc]: https://typedoc.org/ [claude-code]: https://claude.ai/claude-code