From ffb93347e2835e5371f47d6a0d70d6bff98006f1 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 2 Jul 2026 13:33:25 +0900 Subject: [PATCH] Document future Playwright MCP testing --- ...4plus-script-automation-plan-2026-07-02.md | 14 ++++++++++++++ docs/tdc114plus-testing-policy-2026-07-02.md | 19 +++++++++++++++++++ docs/test-logs/2026-07-test-execution-log.md | 13 +++++++++++++ 3 files changed, 46 insertions(+) diff --git a/docs/tdc114plus-script-automation-plan-2026-07-02.md b/docs/tdc114plus-script-automation-plan-2026-07-02.md index de80aba..165aa07 100644 --- a/docs/tdc114plus-script-automation-plan-2026-07-02.md +++ b/docs/tdc114plus-script-automation-plan-2026-07-02.md @@ -92,3 +92,17 @@ TDC114_API_BASE=https://staging.example.com ./scripts/integration_tests.sh - 실제 CI gate에 연결할 수 있는 스크립트는 `quality-gate.sh`부터 시작한다. - AI/LLM redteam 자동화는 현재 앱 범위 밖이므로 `redteam/run_all.sh`는 보류 상태로 유지한다. - 자동화 스크립트 실행 결과는 `docs/test-logs/YYYY-MM-test-execution-log.md`에 월별로 누적 기록한다. + +## 5. Playwright MCP 활용 예정 + +Playwright MCP는 향후 web/preview 기반 화면 확인이 가능해지는 시점부터 테스트 정책에 활용한다. + +우선 적용 후보: + +- 로그인 화면 smoke test +- 직원목록/검색/가족사 필터 화면 회귀 확인 +- 직원 상세 화면 표시 확인 +- screenshot 기반 UI 리뷰 자료 생성 +- 텍스트 overflow, 주요 버튼 표시, 라우팅 이동 확인 + +현재는 Flutter web/preview 실행 방식이 확정되지 않았으므로 별도 `scripts/playwright-*` 파일은 만들지 않는다. 실행 방식이 확정되면 Playwright MCP 시나리오 문서와 월별 테스트 로그 기록 형식을 추가한다. diff --git a/docs/tdc114plus-testing-policy-2026-07-02.md b/docs/tdc114plus-testing-policy-2026-07-02.md index 9084624..e7d32f7 100644 --- a/docs/tdc114plus-testing-policy-2026-07-02.md +++ b/docs/tdc114plus-testing-policy-2026-07-02.md @@ -83,6 +83,20 @@ Flutter 앱 코드를 변경한 모든 작업은 아래 검증을 통과해야 Phase 3에서는 실제 API가 없으므로 mock 데이터와 fake repository를 사용한다. +### 3.3 Playwright MCP 활용 예정 영역 + +향후 화면 회귀 검증과 브라우저 기반 점검에는 Playwright MCP를 활용한다. + +적용 후보: + +- Flutter web 또는 preview 환경에서 로그인/직원목록/상세 화면 흐름 점검 +- mock 데이터 기반 검색/필터 UI 회귀 확인 +- 화면 깨짐, overflow, 주요 텍스트 노출 여부 확인 +- screenshot 기반 수동 리뷰 자료 생성 +- Baron SSO orgFront/backend 관리 화면 확인이 필요한 경우 브라우저 자동화 보조 + +현재 1차 앱은 Android/iOS Flutter 앱 중심이므로 Playwright MCP는 필수 검증 게이트가 아니다. Phase 3에서 web/preview 실행 방식이 정해지면 Playwright MCP 검증 시나리오와 실행 로그 기록 방식을 추가한다. + ## 4. 단계별 테스트 전략 ### 4.1 Phase 3: Mock 기반 1차 UI @@ -101,6 +115,11 @@ Phase 3에서는 실제 API가 없으므로 mock 데이터와 fake repository를 - 즐겨찾기 토글 상태 변경 - 로그인 화면에서 직원목록 화면으로 이동 +선택 테스트: + +- Playwright MCP 기반 web/preview 화면 smoke test +- Playwright MCP screenshot 기반 UI 회귀 확인 + 완료 기준: - `flutter analyze` 통과 diff --git a/docs/test-logs/2026-07-test-execution-log.md b/docs/test-logs/2026-07-test-execution-log.md index 0aab6e2..1a2bbff 100644 --- a/docs/test-logs/2026-07-test-execution-log.md +++ b/docs/test-logs/2026-07-test-execution-log.md @@ -75,3 +75,16 @@ - 세부 항목은 `YYYY-MM-DD HH:mm KST` 단위로 기록 - 후속 조치: - 이후 테스트/검증 실행 시 `docs/test-logs/2026-07-test-execution-log.md`에 계속 누적 + +## 2026-07-02 13:45 KST - Playwright MCP 향후 활용 정책 반영 + +- 목적: 추후 Playwright MCP를 tdc114plus 테스트 정책에 활용할 수 있도록 예정 영역 명시 +- 실행 명령: + - `docs/tdc114plus-testing-policy-2026-07-02.md` 갱신 + - `docs/tdc114plus-script-automation-plan-2026-07-02.md` 갱신 +- 결과: 통과 +- 주요 출력: + - Playwright MCP는 현재 필수 게이트가 아닌 향후 web/preview 화면 회귀 검증 후보로 분리 + - Phase 3 선택 테스트에 Playwright MCP 기반 smoke/screenshot 검증 후보 추가 +- 후속 조치: + - Flutter web/preview 실행 방식이 정해지면 Playwright MCP 시나리오와 로그 기록 방식을 구체화