-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Add Lighthouse performance tests using Playwright #18
base: main
Are you sure you want to change the base?
Conversation
- Implement Lighthouse performance tests for MainPage and LobbyPage - Include Lighthouse audit with performance metrics and scores - Add sessionStorage manipulation and URL navigation handling
📚 Storybook preview deployed to: Visit Storybook Preview |
📚 Storybook preview deployed to: Visit Storybook Preview |
📚 Storybook preview deployed to: Visit Storybook Preview |
📚 Storybook preview deployed to: Visit Storybook Preview |
📚 Storybook preview deployed to: Visit Storybook Preview |
📚 Storybook preview deployed to: Visit Storybook Preview |
📚 Storybook preview deployed to: Visit Storybook Preview |
📚 Storybook preview deployed to: Visit Storybook Preview |
|
- Configure Playwright tests with a 'list' reporter and remote debugging on port 9222. - Add 'lighthouse' test project with a match for 'lighthouse.test.ts'. - Web server runs on port 4173 using 'pnpm start', with server reuse in non-CI environments.
- Capture performance, accessibility, best-practices, and SEO scores. - Extract and display key metrics including FCP, LCP, TBT, CLS, and SI. - Results are saved in a structured JSON format in the .lighthouse directory.
- Results are uploaded as artifacts for review.
📚 Storybook preview deployed to: Visit Storybook Preview |
🚦 Lighthouse Audit ResultsMainPageCategory Scores
Core Web Vitals & Metrics
LobbyPageCategory Scores
Core Web Vitals & Metrics
|
📚 Storybook preview deployed to: Visit Storybook Preview |
🚦 Lighthouse Audit ResultsMainPageCategory Scores
Core Web Vitals & Metrics
LobbyPageCategory Scores
Core Web Vitals & Metrics
|
- Split files by responsibility - Separate utilities - Organize test cases and configurations
📚 Storybook preview deployed to: Visit Storybook Preview |
🚦 Lighthouse Audit ResultsMainPageCategory Scores
Core Web Vitals & Metrics
LobbyPageCategory Scores
Core Web Vitals & Metrics
|
📚 Storybook preview deployed to: Visit Storybook Preview |
🚦 Lighthouse Audit ResultsMainPageCategory Scores
Core Web Vitals & Metrics
LobbyPageCategory Scores
Core Web Vitals & Metrics
|
📂 작업 내용
closes #9
💡 자세한 설명
주요 변경사항
성능 측정 관련 코드 구조화
GitHub Actions workflow 추가
테스트
결과물
.lighthouse/
디렉토리에 HTML 리포트 및 JSON 결과 저장pnpm lighthouse
하면 console에 결과 출력📗 참고 자료 & 구현 결과 (선택)
https://inquisitive-beret-c36.notion.site/Lighthouse-25cfd3c65c8b4b9bb3d7b3ea6c7a554d?pvs=4
pnpm lighthouse
하면 console에 결과 출력PR 코멘트에 성능 지표 표시
📢 리뷰 요구 사항 (선택)
🚩 후속 작업 (선택)
✅ 셀프 체크리스트
main
이 아닙니다.)