docs: split smoke commands and clarify runbook
TaxBaik CI/CD / build-and-deploy (push) Failing after 4m39s

This commit is contained in:
2026-07-04 21:21:36 +09:00
parent af238543c5
commit dcd4c283b8
3 changed files with 11 additions and 35 deletions
+2 -1
View File
@@ -78,7 +78,8 @@ jobs:
E2E_ADMIN_PASSWORD: TestAdmin@123456 E2E_ADMIN_PASSWORD: TestAdmin@123456
run: | run: |
echo "Running smoke checks on Desktop Chrome (production verification)" echo "Running smoke checks on Desktop Chrome (production verification)"
npm run test:e2e:smoke -- --project="Desktop Chrome" npm run test:e2e:public-smoke
npm run test:e2e:admin-smoke
- name: Browser E2E verification - name: Browser E2E verification
env: env:
+6 -33
View File
@@ -172,40 +172,13 @@ master 브랜치에 푸시하면 파이프라인이 다음 단계를 수행합
## E2E / Smoke ## E2E / Smoke
공개/관리자 분리 검증은 다음 순서로 실행합니다. 공개/관리자 분리 검증은 아래 명령을 사용합니다.
```bash | 용도 | Bash | PowerShell |
npm run test:e2e:smoke -- --project="Public Smoke" | --- | --- | --- |
npm run test:e2e:smoke -- --project="Admin Smoke" | Public smoke | `E2E_BASE_URL=https://www.taxbaik.com/taxbaik npm run test:e2e:public-smoke` | `$env:E2E_BASE_URL="https://www.taxbaik.com/taxbaik"; npm run test:e2e:public-smoke` |
``` | Admin smoke | `E2E_BASE_URL=https://www.taxbaik.com/taxbaik npm run test:e2e:admin-smoke` | `$env:E2E_BASE_URL="https://www.taxbaik.com/taxbaik"; npm run test:e2e:admin-smoke` |
| Direct smoke script | `ROOT_URL="https://www.taxbaik.com/" ADMIN_URL="https://www.taxbaik.com/taxbaik/admin/login" bash ./scripts/taxbaik-smoke.sh` | `$env:ROOT_URL="https://www.taxbaik.com/"; $env:ADMIN_URL="https://www.taxbaik.com/taxbaik/admin/login"; bash ./scripts/taxbaik-smoke.sh` |
원격 배포본을 검증할 때는 `E2E_BASE_URL`을 명시합니다.
```bash
$env:E2E_BASE_URL="https://www.taxbaik.com/taxbaik"
npm run test:e2e:smoke -- --project="Public Smoke"
npm run test:e2e:smoke -- --project="Admin Smoke"
```
배포 직후 공용/관리자 응답만 빠르게 확인할 때는 smoke 스크립트를 직접 실행합니다.
```bash
ROOT_URL="https://www.taxbaik.com/" \
ADMIN_URL="https://www.taxbaik.com/taxbaik/admin/login" \
bash ./scripts/taxbaik-smoke.sh
```
Windows PowerShell에서는 이렇게 실행합니다.
```powershell
$env:E2E_BASE_URL = "https://www.taxbaik.com/taxbaik"
npm run test:e2e:smoke -- --project="Public Smoke"
npm run test:e2e:smoke -- --project="Admin Smoke"
$env:ROOT_URL = "https://www.taxbaik.com/"
$env:ADMIN_URL = "https://www.taxbaik.com/taxbaik/admin/login"
bash ./scripts/taxbaik-smoke.sh
```
--- ---
+3 -1
View File
@@ -2,7 +2,9 @@
"scripts": { "scripts": {
"test:e2e": "playwright test", "test:e2e": "playwright test",
"test:e2e:headed": "playwright test --headed", "test:e2e:headed": "playwright test --headed",
"test:e2e:smoke": "playwright test --grep @smoke" "test:e2e:smoke": "playwright test --grep @smoke",
"test:e2e:public-smoke": "playwright test --project=\"Public Smoke\" tests/e2e/public-smoke.spec.ts",
"test:e2e:admin-smoke": "playwright test --project=\"Admin Smoke\" tests/e2e/admin-smoke.spec.ts"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "1.57.0" "@playwright/test": "1.57.0"