Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5bca97f
add: playwright 자동화 ci 스크립트 추가 및 작동 테스트
qkrwoghd04 Jul 29, 2025
82f27ab
fix: vitest와의 충돌로 테스트 실패하는 부분 수정
qkrwoghd04 Jul 29, 2025
3041995
add: playwright 관련 설정 초기화
qkrwoghd04 Jul 29, 2025
44dc1e5
test(e2e): 팀소개 페이지 진입 및 구독 버튼 인터랙션 테스트 추가
qkrwoghd04 Jul 29, 2025
94eefd7
fix: playwright ci 과정에서 npm run start로 개발 서버를 띄우려 해서 에러 발생 - 해결
qkrwoghd04 Jul 29, 2025
ecaad9d
fix: page.mouse.wheel() 함수가 모바일 환경에서는 지원하지 않은 문제 해결
qkrwoghd04 Jul 29, 2025
0b4b559
test: Playwright E2E 테스트 및 Lighthouse 성능 리포트 워크플로우 통합
qkrwoghd04 Jul 29, 2025
5aaf0ad
fix: contentRequest 파일 삭제로 발생하던 오류 해결
qkrwoghd04 Jul 29, 2025
b1b6689
fix: contentRequest 파일 삭제로 발생하던 오류 해결
qkrwoghd04 Jul 29, 2025
2812c65
fix: lighthouse 데스크탑 환경으로 적용
qkrwoghd04 Jul 29, 2025
b732794
refactor: playwright와 lighthouse가 리포트만 업로드하고 끝나는 것이 아닌, 요약해서 코멘트로 남기게 처리
qkrwoghd04 Jul 29, 2025
f16039d
refactor: playwright와 lighthouse가 리포트만 업로드하고 끝나는 것이 아닌, 요약해서 코멘트로 남기게 처리
qkrwoghd04 Jul 29, 2025
670bec2
refactor: playwright와 lighthouse가 리포트만 업로드하고 끝나는 것이 아닌, 요약해서 코멘트로 남기게 처리
qkrwoghd04 Jul 29, 2025
490d2bf
refactor: playwright와 lighthouse가 리포트만 업로드하고 끝나는 것이 아닌, 요약해서 코멘트로 남기게 처리
qkrwoghd04 Jul 29, 2025
0cd04eb
refactor: playwright와 lighthouse가 리포트만 업로드하고 끝나는 것이 아닌, 요약해서 코멘트로 남기게 처리
qkrwoghd04 Jul 29, 2025
f104d30
test: Playwright 리포터 설정을 config 파일로 이전해 JSON 결과 안정화
qkrwoghd04 Jul 29, 2025
4991e35
test: Playwright 리포터 설정을 config 파일로 이전해 JSON 결과 안정화
qkrwoghd04 Jul 29, 2025
b1ce386
test: Playwright 리포터 설정을 config 파일로 이전해 JSON 결과 안정화
qkrwoghd04 Jul 29, 2025
3f15ec8
modify: playwright report 형식 json으로 수정
qkrwoghd04 Jul 30, 2025
e294543
modify: playwright report 형식 json으로 수정
qkrwoghd04 Jul 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/E2ETest_Lighthouse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Playwright + Lighthouse

on:
pull_request:
branches: [main]

jobs:
e2e-and-lighthouse:
timeout-minutes: 60
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm ci

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Build project
run: npm run build

- name: Run Playwright tests
run: npx playwright test

- name: Run Lighthouse CI
run: npx lhci autorun --config=./lighthouserc.json

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report
retention-days: 30

- uses: actions/upload-artifact@v4
if: always()
with:
name: lighthouse-report
path: lhci-report
retention-days: 30
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ dev-dist
*.njsproj
*.sln
*.sw?

# Playwright
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
19 changes: 19 additions & 0 deletions lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"ci": {
"collect": {
"url": ["http://localhost:5173"],
"startServerCommand": "npm run dev",
"numberOfRuns": 1
},
"assert": {
"assertions": {
"categories:performance": ["error", { "minScore": 0.8 }],
"categories:accessibility": ["warn", { "minScore": 0.8 }]
}
},
"upload": {
"target": "filesystem",
"outputDir": "./lhci-report"
}
}
}
Loading
Loading