From 993a9f4ff24a802adcdb8d9885ed68594ba2d3d6 Mon Sep 17 00:00:00 2001 From: jangwoong Date: Thu, 9 Jul 2026 13:51:02 +0900 Subject: [PATCH] =?UTF-8?q?[cs=20frontend]=20java=20script=20test=20case?= =?UTF-8?q?=20=EC=9E=91=EC=84=B1=20playwright=20=EC=84=B8=ED=8C=85=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 51 ++++++++++++++++++++++++++++ .vscode/settings.json | 5 ++- apps/cs/package.json | 3 +- apps/cs/playwright-report/index.html | 2 +- 4 files changed, 58 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index a272d88ed..731591b62 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -43,6 +43,57 @@ "webRoot": "${workspaceFolder}/apps/as" } }, + { + "type": "node", + "request": "launch", + "name": "Playwright: 현재 활성화된 테스트 디버그", + "runtimeExecutable": "pnpm", + "runtimeArgs": [ + "--filter", + "cs", + "exec", + "playwright", + "test", + "${relativeFile}" + ], + "cwd": "${workspaceFolder}", + "console": "integratedTerminal", + "skipFiles": [ + "/**" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Playwright: cs 로그인 테스트 디버그", + "runtimeExecutable": "pnpm", + "runtimeArgs": [ + "--filter", + "cs", + "exec", + "playwright", + "test", + "tests/login.spec.ts" + ], + "cwd": "${workspaceFolder}", + "console": "integratedTerminal", + "skipFiles": [ + "/**" + ] + }, + { + "type": "node-terminal", + "request": "launch", + "name": "dev:cs 통합 디버그 (Server + Client)", + "command": "pnpm --filter cs dev", + "cwd": "${workspaceFolder}", + "serverReadyAction": { + "action": "debugWithChrome", + "pattern": "- Local:\\s+(https?://.+)", + "uriFormat": "%s", + "webRoot": "${workspaceFolder}/apps/cs" + } + }, { "type": "node", "request": "launch", diff --git a/.vscode/settings.json b/.vscode/settings.json index f60bf453a..5b82bf5e9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,8 @@ { "chat.tools.terminal.autoApprove": { "pnpm": true - } + }, + "playwright.configs": [ + "apps/cs/playwright.config.ts" + ] } \ No newline at end of file diff --git a/apps/cs/package.json b/apps/cs/package.json index da95dc95c..180a8f1e6 100644 --- a/apps/cs/package.json +++ b/apps/cs/package.json @@ -7,7 +7,8 @@ "build": "next build", "start": "next start", "lint": "next lint", - "test:playwright": "playwright test" + "test:playwright": "playwright test", + "test:playwright:ui": "playwright test --ui" }, "dependencies": { "@common/assets": "workspace:*", diff --git a/apps/cs/playwright-report/index.html b/apps/cs/playwright-report/index.html index 9ac4d2b42..45cd76dcc 100644 --- a/apps/cs/playwright-report/index.html +++ b/apps/cs/playwright-report/index.html @@ -87,4 +87,4 @@ Error generating stack: `+l.message+`
- \ No newline at end of file + \ No newline at end of file