Commit Graph

6 Commits

Author SHA1 Message Date
kjh2064 89fa51efe2 refactor admin UX and stabilize shell
TaxBaik CI/CD / build-and-deploy (push) Failing after 2m20s
2026-07-09 00:03:33 +09:00
kjh2064 3b055bbc93 경로 최적화 완료: 상대경로 + Nginx rewrite 준비
## 완료 항목
-  index.html base href: /taxbaik/admin/
-  모든 API 경로: 상대경로
-  E2E 테스트: 로컬 완벽 통과
-  WASM 부팅: 정상

## 운영서버 필수 사항
⚠️ Nginx 설정 변경 필수:

변경 전:
location /taxbaik {
    proxy_pass         http://127.0.0.1:5001;
}

변경 후:
location /taxbaik/ {
    proxy_pass         http://127.0.0.1:5001/;
    rewrite ^/taxbaik/(.*)$ /$1 break;
}

## 이유
- PathBase 제거로 앱이 /taxbaik을 인식하지 않음
- Nginx에서 /taxbaik 프리픽스를 제거해야 함
- 이렇게 하면 로컬/운영 모두 동일한 상대경로 동작

## 테스트 결과
로컬:
 공개 페이지: 5/5 통과
 대시보드: 4/4 통과 (퀵테스트)

운영:
 Nginx 수정 후 재테스트 필요

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-08 16:27:48 +09:00
kjh2064 0f71e8c41f Fix admin WASM shell and E2E auth
TaxBaik CI/CD / build-and-deploy (push) Failing after 23s
2026-07-07 15:47:29 +09:00
kjh2064 35842b6765 Refine admin login flow and verification harness
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m21s
2026-07-07 14:38:30 +09:00
kjh2064 7002d50a4e Fix admin routing and Playwright smoke checks
TaxBaik CI/CD / build-and-deploy (push) Successful in 5m22s
2026-07-04 23:07:16 +09:00
kjh2064 ad6a65324a fix: improve login form field selection and extend playwright timeouts
TaxBaik CI/CD / build-and-deploy (push) Successful in 2m29s
Changes:
1. admin-session.js: Use name attribute selectors instead of placeholder
   - Changed: querySelector('input[placeholder="사용자명"]')
   - To: querySelector('input[name="username"]')
   - Reason: Placeholder selectors are fragile with DOM mutations

2. playwright.config.ts: Extend test timeouts for WASM boot
   - Test timeout: 120s → 180s
   - Expect timeout: 60s → 90s
   - Reason: Blazor WASM bundle takes 60-120s to boot in local dev

3. tests/e2e/admin-login.spec.ts: Increase assertion timeouts
   - Dashboard heading visibility: 20s → 60s
   - Logout link visibility: timeout added 30s

4. tests/e2e/blog-crud.spec.ts: New comprehensive blog CRUD test
   - Tests complete login flow
   - Validates localStorage token storage
   - Checks blog list page navigation

Status: Login form submission now works with proper field selection.
Remaining: Blazor WASM boot optimization needed for production.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-03 14:40:44 +09:00