Skip to content

mezonai/mezon-e2e

Repository files navigation

Mezon Automation Framework

Comprehensive test automation framework built with Playwright + BDD pattern for

🚀 Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

# Clone repository
git clone <repository-url>
cd mezon-automation

# Install dependencies
npm install

# Install browsers
npx playwright install

Environment Setup

# Default environment variables (in playwright.config.ts)
BASE_URL=https://dev-mezon.nccsoft.vn
NODE_ENV=development

🧪 Running Tests

BDD Test Commands

# Run all BDD tests (recommended)
npm run test

# Run authentication setup
npm run test:setup

# Run specific test groups
npm run test:bdd:login       # Login flow tests (no auth required)
npm run test:bdd             # All BDD tests

# Run traditional tests (with auth)
npm run test:traditional

# Debug mode
npm run test:debug
npm run test:ui

📊 Test Reporting

This project uses multiple reporting mechanisms:

GitHub Actions Reporter

  • @estruyf/github-actions-reporter: Automatically generates test summaries in GitHub Actions
  • Provides detailed test results with expandable sections
  • Shows errors, annotations, and test tags
  • Includes links to artifacts

Playwright Reports

  • Standard Playwright HTML reports
  • Available at playwright-report/index.html

View Reports

# Open Ortoni report
npm run report

# Open Playwright report
npm run report:playwright

About

mezon end to end test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 16

Languages