Skip to content

Add Playwright E2E test suite and update documentation#98

Open
lucianlavric wants to merge 2 commits into
mainfrom
docs/add-testing-documentation
Open

Add Playwright E2E test suite and update documentation#98
lucianlavric wants to merge 2 commits into
mainfrom
docs/add-testing-documentation

Conversation

@lucianlavric

Copy link
Copy Markdown
Contributor

Summary

  • Adds comprehensive Playwright E2E test suite for quality assurance
  • Updates project documentation to accurately reflect the codebase
  • Provides testing commands and workflow documentation

Changes Made

Testing Infrastructure

  • ✅ Installed Playwright testing framework
  • ✅ Created test configuration (playwright.config.ts)
  • ✅ Added test scripts to package.json for easy execution
  • ✅ Updated .gitignore to exclude test results and reports

Test Suite (e2e/ directory)

  • smoke.spec.ts - Verifies all pages load without errors
  • navigation.spec.ts - Tests header navigation and responsive design
  • forms.spec.ts - Template for form interaction tests (to be customized)
  • README.md - Comprehensive testing documentation

Documentation Updates

  • ✅ Updated root README with accurate project description
  • ✅ Removed outdated "starter template" language
  • ✅ Added testing section with all available commands
  • ✅ Updated project structure to reflect actual codebase
  • ✅ Added testing workflow guidelines

Testing Commands

# Quick smoke tests (recommended before deployment)
npm run test:smoke

# All tests with interactive UI
npm run test:ui

# Run all tests headless
npm test

# Debug mode
npm run test:debug

What Gets Tested

  • ✅ All 8 main pages load successfully
  • ✅ No console errors on key pages
  • ✅ Navigation links work correctly
  • ✅ Mobile menu functionality
  • ✅ Responsive design across devices
  • ✅ Cross-browser compatibility (Chrome, Firefox, Safari)

Next Steps

After merging, consider:

  1. Customizing form tests in forms.spec.ts based on actual form fields
  2. Adding tests for dynamic routes with real Sanity content
  3. Setting up CI/CD to run tests automatically
  4. Adding visual regression testing if needed

Test Plan

  • Tests run successfully locally
  • Documentation is accurate and helpful
  • All test scripts work as expected
  • No sensitive information exposed

- Install Playwright and configure for E2E testing
- Add comprehensive test suite with smoke, navigation, and form tests
- Update README with accurate project description and testing commands
- Move test files to e2e/ directory to match config
- Add test scripts to package.json for easy test execution
- Update .gitignore to exclude test results and reports

This provides a solid testing foundation for the website migration,
ensuring quality and catching regressions before deployment.
@vercel

vercel Bot commented Feb 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
childcan Ready Ready Preview, Comment Feb 14, 2026 10:19pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant