From 673c78be1726bcc7c16d75219a77fe4fce27851e Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sat, 4 Jul 2026 20:49:34 +0900 Subject: [PATCH] docs: add smoke runbook and split smoke projects --- README.md | 16 ++++++++++++++++ playwright.config.ts | 10 ++++++++++ 2 files changed, 26 insertions(+) diff --git a/README.md b/README.md index d426db6..83bb2f6 100644 --- a/README.md +++ b/README.md @@ -170,6 +170,22 @@ master 브랜치에 푸시하면 파이프라인이 다음 단계를 수행합 배포는 Gitea Actions CI/CD로만 수행합니다. 수동 배포 경로는 CI 하네스로 차단되어 있으며, 실패 시 [DEPLOYMENT_GUIDE.md](./DEPLOYMENT_GUIDE.md)의 CI 점검 절차를 따릅니다. +## E2E / Smoke + +공개/관리자 분리 검증은 다음 순서로 실행합니다. + +```bash +npm run test:e2e:smoke -- --project="Public Smoke" +npm run test:e2e:smoke -- --project="Admin Smoke" +``` + +원격 배포본을 검증할 때는 `E2E_BASE_URL`을 명시합니다. + +```bash +$env:E2E_BASE_URL="https://www.taxbaik.com/taxbaik" +npm run test:e2e:smoke -- --project="Public Smoke" +``` + --- ## 개발 지침 diff --git a/playwright.config.ts b/playwright.config.ts index 6bcc577..eafd58c 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -36,6 +36,16 @@ export default defineConfig({ { name: 'Galaxy S9+', use: { ...devices['Galaxy S9+'] } + }, + { + name: 'Public Smoke', + testMatch: /public-smoke\.spec\.ts$/, + use: { ...devices['Desktop Chrome'] } + }, + { + name: 'Admin Smoke', + testMatch: /admin-smoke\.spec\.ts$/, + use: { ...devices['Desktop Chrome'] } } ] });