End-to-end testing suite demonstrating various testing capabilities with Playwright.
# Install dependencies
npm install
# Install browsers
npx playwright install
# Run all tests
npx playwright test
# Run tests with UI mode
npx playwright test --ui
tests/
├── features/
├── api/
│ └── users.spec.js # API testing examples
├── documentation/
│ └── navigation.spec.js # Playwright docs tests
├── forms/
│ └── contact.spec.js # Form interaction tests
├── search/
│ └── google.spec.js # Search functionality tests
└── visual/
└── layout.spec.js # Visual testing examples
Latest test execution results:
- GET request validation
- POST request testing
- JSON response handling
- PUT request updates
- DELETE request handling
- Playwright website navigation
- Title verification
- Installation page access
- Todo item creation
- Checkbox interaction
- Form state validation
- Google search functionality
- Human-like interaction patterns
- Results verification
- Screenshot comparison
- Responsive layout testing
- Multiple viewport sizes
# Run API tests
npx playwright test tests/features/api/
# Run form tests
npx playwright test tests/features/forms/
# Run single test file
npx playwright test tests/features/search/google.spec.js
npx playwright show-report
Browser settings and test options are configured in playwright.config.js
. Current setup includes:
- Chromium, Firefox, and WebKit browsers
- Parallel test execution
- HTML report generation
- Network request handling