Skip to content

AtaFarivar/playwright-e2e-real-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽญ Playwright E2E Testing Project - Trendyol

This repository contains an automated End-to-End (E2E) testing suite for Trendyol, built with Playwright, TypeScript, and Allure Reports.


๐Ÿš€ Live Test Report

You can view the latest automated test results here: ๐Ÿ‘‰ View Allure Report


๐Ÿ›  Features & Architecture

  • 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.

๐Ÿงช Test Scenarios

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.

โš™๏ธ How to Run Locally

  1. Clone the repository:

    git clone https://github.com/AtaFarivar/playwright-e2e-real-project.git
    cd playwright-e2e-real-project
  2. Install dependencies:

    npm install
  3. Install Playwright browsers:

    npx playwright install
  4. Run tests:

    npx playwright test
  5. Generate & Open Allure Report:

    npx playwright test --reporter=allure-playwright
    npx allure serve allure-results

๐Ÿค– CI/CD Integration

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

About

๐Ÿš€ Professional Playwright & TypeScript automation framework for Trendyol.com. Features Page Object Model (POM), Custom Fixtures, and Allure Reporting with BDD-style test steps.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors