Tailorbird_ui_automation

๐Ÿงช Playwright Test Automation Suite

This repository contains automated end-to-end tests built using Playwright.
The tests are designed to validate UI functionality, user workflows, and key features across browsers.

๐Ÿงฐ Prerequisites

Install Node.js and Visual Studio Code

1. Clone the repository

git clone https://github.com/Harshalogy/Tailorbird_ui_automation.git  

Open the Folder in Visual Code

2. Install dependencies

npm install

3. Install Playwright and browsers

npx playwright install  

๐Ÿงญ Running Tests

โ–ถ Run all tests

npx playwright test

โ–ถ Run tests in headed mode (see browser)

npx playwright test --headed

โ–ถ Run a specific test file

npx playwright test tests/example.spec.ts

โ–ถ Generate and view the test report

npx playwright show-report

๐Ÿงฉ Project Structure

โ”œโ”€โ”€ tests/                 # Playwright test scripts
โ”œโ”€โ”€ playwright.config.ts   # Playwright configuration file
โ”œโ”€โ”€ package.json           # Dependencies and npm scripts
โ”œโ”€โ”€ utils/                 # Utility functions and helpers
โ””โ”€โ”€ README.md              # Project documentation

Run these tests in Terminal

๐ŸŸข PowerShell (Windows)

if (Test-Path "Tailorbird_ui_automation") { Remove-Item -Recurse -Force "Tailorbird_ui_automation" }; git clone https://github.com/Harshalogy/Tailorbird_ui_automation.git; cd Tailorbird_ui_automation; npm install; npx playwright install chromium; npx playwright test --headed; npx playwright show-report

๐ŸŸ  Command Prompt (CMD) or macOS/Linux Terminal

IF EXIST "Tailorbird_ui_automation" (rmdir /s /q "Tailorbird_ui_automation") && git clone https://github.com/Harshalogy/Tailorbird_ui_automation.git && cd Tailorbird_ui_automation && npm install && npx playwright install chromium && npx playwright test --headed && npx playwright show-report

๐ŸŸ  If Node.js is also not install, run this command

command -v node >/dev/null 2>&1 || { echo "Node.js not found. Installing..."; sudo apt update && sudo apt install -y nodejs npm; }; [ -d "Tailorbird_ui_automation" ] && rm -rf Tailorbird_ui_automation; git clone https://github.com/Harshalogy/Tailorbird_ui_automation.git && cd Tailorbird_ui_automation && npm install && npx playwright install chromium && npx playwright test --headed && npx playwright show-report

๐Ÿ“Š View Test Results (GitHub Actions)

You can view the latest Playwright HTML test reports published from GitHub Actions here: ๐Ÿ‘‰ https://harshalogy.github.io/Tailorbird_ui_automation/