Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.49 KB

File metadata and controls

55 lines (37 loc) · 1.49 KB

Testing with Playwright

This project uses Playwright for end-to-end testing with comprehensive coverage of the Hebrew RTL web application.

Quick Start

# Install dependencies
bun install

# Install Playwright browsers
bun run test:e2e:install

# Run all tests
bun run test:e2e

# Run tests in UI mode (interactive)
bun run test:e2e:ui

# Run tests in headed mode (visible browser)
bun run test:e2e:headed

# Run tests on specific browser
bun run test:e2e:chrome
bun run test:e2e:firefox
bun run test:e2e:safari

# Run responsive tests
bun run test:e2e:responsive

# Run Hebrew RTL tests
bun run test:e2e:hebrew

# View test report
bun run test:e2e:report

Test Structure

  • tests/page-objects/ - Page Object Models for maintainable test code
  • tests/mocks/ - API mocking infrastructure for deterministic testing
  • tests/homepage.spec.ts - Core homepage functionality tests
  • tests/responsive.spec.ts - Mobile/tablet/desktop responsive design tests
  • tests/hebrew-rtl.spec.ts - Hebrew language and RTL direction tests

CI/CD

Tests automatically run on every GitHub commit across multiple browsers and devices. See .github/workflows/e2e-tests.yml for configuration.

Current Status

36 core tests passing - Critical user flows validated
🔄 32 tests skipped - Optimization opportunities for future iteration

The foundation is production-ready with solid coverage of page loading, Hebrew text rendering, component visibility, and responsive design.