This repository contains an automated End-to-End (E2E) testing suite for Trendyol, built with Playwright, TypeScript, and Allure Reports.
You can view the latest automated test results here: ๐ View Allure Report
- Framework: Playwright (for fast, reliable, and cross-browser testing).
- Language: TypeScript (for type safety and better developer experience).
- Design Pattern: Page Object Model (POM) for maintainable and scalable code.
- Reporting: Allure Report with historical data tracking.
- CI/CD: Integrated with GitHub Actions for automated execution on every push.
- Environment Management: Secure handling of credentials using GitHub Secrets.
The suite currently includes 7 automated tests covering:
- โ Homepage Visibility: Verifying core UI elements and marketing popups.
- โ
Authentication Suite:
- Valid Login (using secure environment variables).
- Invalid Email/Password combinations.
- Edge cases like empty fields and trailing/leading spaces in inputs.
-
Clone the repository:
git clone https://github.com/AtaFarivar/playwright-e2e-real-project.git cd playwright-e2e-real-project -
Install dependencies:
npm install
-
Install Playwright browsers:
npx playwright install
-
Run tests:
npx playwright test -
Generate & Open Allure Report:
npx playwright test --reporter=allure-playwright npx allure serve allure-results
Tests are automatically triggered on:
- Every push to main or master branches.
- Every pull_request.
- Manual trigger via the "Run workflow" button in the GitHub Actions tab.
Created by Ata Farivar