This project demonstrates a robust end-to-end testing suite for authentication workflows using Playwright and TypeScript. It includes tests for user sign-up, sign-in, and dashboard accessibility, implementing industry best practices like the Page Object Model (POM), dynamic waits, and dynamic email generation.
The base URL for the application under test is: https://arroyoautomation.com.
- Dynamic Email Generation: Ensures unique emails for each test run.
- Page Object Model (POM): Modular design for reusable and maintainable test code.
- Dynamic Waits: Avoids flaky tests by dynamically waiting for UI elements.
- Cross-Browser Testing: Compatible with Chromium, Firefox, and WebKit.
- HTML Reporting: Generates detailed test reports for debugging and analysis.
- Node.js (>=16.x)
- npm or Yarn
- Playwright installed globally (optional)
-
Clone the repository:
git clone https://github.com/your-username/playwright-project.git cd playwright-project -
Install the required dependencies: npm install
-
Install Playwright browsers: npx playwright install
Run All Tests: npx playwright test
Run Tests in Non-Headless Mode: npx playwright test --headed
Run a Specific Test File: npx playwright test tests/auth/signupTests.spec.ts
Run Tests in a Specific Browser: npx playwright test --project=chromium npx playwright test --project=firefox npx playwright test --project=webkit
View HTML Report: npx playwright show-report