Skip to content

Feat/playwright test#424

Merged
hexdrinker merged 12 commits into
developfrom
feat/playwright-test
May 4, 2026
Merged

Feat/playwright test#424
hexdrinker merged 12 commits into
developfrom
feat/playwright-test

Conversation

@hexdrinker

Copy link
Copy Markdown
Collaborator

배경

  • 기존 테스트 커버리지를 유틸/통합 중심에서 사용자 플로우 중심까지 확장하기 위해 E2E를 도입했습니다.
  • 시각 스냅샷 회귀 대신 기능 검증 중심 테스트로 방향을 정리했습니다.
  • 라우팅 케이스는 E2E 과설계 구간이 있어 통합 테스트로 이관해 유지보수 비용을 낮췄습니다.

변경 사항

1) Playwright 기능 E2E 도입

  • 추가
    • apps/admin/e2e/functional/auth-routing.e2e.spec.ts
    • apps/admin/e2e/functional/prequestion-response-flow.e2e.spec.ts
    • apps/admin/e2e/functional/settlement-request-flow.e2e.spec.ts
    • apps/admin/playwright.config.ts
  • 스크립트 추가/정리
    • test:e2e
    • test:e2e:functional
    • test:e2e:ui

2) MSW 기반 E2E mock 환경 구축

  • 추가
    • apps/admin/public/mockServiceWorker.js
    • apps/admin/src/mocks/handlers.ts
    • apps/admin/src/mocks/browser.ts
    • apps/admin/e2e/helpers/msw.ts
  • 수정
    • apps/admin/src/main.tsx
    • apps/admin/src/vite-env.d.ts
    • apps/admin/vite.config.ts

3) 통합 테스트 추가

  • 추가
    • apps/admin/src/pages/HomePage/HomePage.integration.test.tsx
    • apps/admin/src/pages/Landing/Landing.integration.test.tsx
    • apps/admin/src/components/ShowPreQuestion/ResponseTab/ResponseTab.integration.test.tsx
    • apps/admin/src/App.auth-routing.integration.test.tsx

4) 라우팅 테스트 구조 최적화

  • PrivateRoute 를 분리해 테스트 가능성 향상
    • 추가: apps/admin/src/routes/PrivateRoute.tsx
    • 수정: apps/admin/src/App.tsx
  • auth-routing E2E는 스모크 1개만 유지
  • 로그인/webview 분기는 통합 테스트로 이관

검증

yarn workspace admin type-check 통과
yarn workspace admin test App.auth-routing.integration.test.tsx 통과
yarn workspace admin test:e2e:functional 통과
yarn workspace admin test:e2e:functional --grep "Auth routing guard" 통과

참고

의존성/환경 반영으로 아래 파일도 함께 변경되었습니다.

  • .pnp.cjs
  • yarn.lock
  • apps/admin/.gitignore

@hexdrinker hexdrinker self-assigned this May 4, 2026
@hexdrinker hexdrinker merged commit e9bae81 into develop May 4, 2026
1 check passed
@hexdrinker hexdrinker deleted the feat/playwright-test branch May 4, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant