test(web): Engagement mutation E2E (#172)#178
Merged
Conversation
- SocialActions 활성화 (post detail 페이지, ImageDetailContent) - engagement.spec.ts 확장: like/save 토글의 POST → DELETE API 호출 검증 + UI 상태 변화 (fill-red-500, fill-primary) 확인 + like/save 독립성 검증 - helpers.ts mock URL 패턴을 regex로 전환 (Playwright 글롭의 `*`/`?` 매칭 문제로 post detail URL이 listing mock에 가로채지던 이슈 해결) Closes #172 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Apr 10, 2026
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SocialActions활성화 (post detail에서 주석 처리되어 있던 블록 복구)engagement.spec.ts를 실제 mutation 검증으로 확장:helpers.tsAPI mock을 regex로 전환 — Playwright 글롭*/?가 post detail URL(/posts/post-1)을 listing mock(posts?*)에 잘못 매치시키는 버그 해결Why
이전 #168의 engagement 테스트는 "렌더만 확인" 수준. 실제 좋아요/저장 동작은 미검증이어서 회귀 방지 기능이 없었음. 이 PR로 "smoke" → "mutation 회귀 방지" 수준 전환.
Test results
Notes
ImageCommentSection은 이번 PR에서 활성화하지 않음 (별도 이슈 권장)commentSectionRef는 SocialActions의onComment콜백에서만 쓰이고 실제 comment section이 없어 스크롤 타겟이 없음 — 현재 UX 영향 없음Closes #172
🤖 Generated with Claude Code