The-DevOps-Daily/devops-daily

feat: Add E2E tests with Playwright

開放

#527 建立於 2025年12月2日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (392 個分叉)github user discovery
enhancementgood first issuehacktoberfest

倉庫指標

星標
 (1,087 顆星)
PR 合併指標
 (平均合併 1天 23小時) (30 天內合併 82 個 PR)

描述

Description

The project currently has excellent test coverage for data validation (4316 tests) but lacks end-to-end (E2E) testing for critical user flows.

Problem

  • No E2E tests exist for interactive features like quizzes, games, search
  • User journeys are not tested from browser perspective
  • Risk of UI regressions going undetected

Proposed Solution

Add Playwright for E2E testing covering:

  • Quiz taking flow (/quizzes/[slug])
  • Game interactions (multiple game pages)
  • Search functionality
  • Navigation across pages
  • Dark mode toggle
  • Mobile responsive behavior

Acceptance Criteria

  • Install and configure Playwright
  • Add E2E tests for quiz completion flow
  • Add E2E tests for at least 2 games
  • Add E2E tests for search
  • Add E2E tests for navigation
  • Configure GitHub Actions workflow for E2E tests
  • Add test documentation

Files to Modify

  • package.json - Add Playwright dependency
  • playwright.config.ts - Create configuration
  • e2e/ - New directory for E2E tests
  • .github/workflows/e2e.yml - New CI workflow

貢獻者指南