Skip to content
yhAutomationQA edited this page May 9, 2026 · 1 revision

Setup

Prerequisites

  • Node.js 22+
  • npm

Installation

git clone https://github.com/yhAutomationQA/playwright-typescript-framework.git
cd playwright-typescript-framework
npm install
npx playwright install

Environment Variables

Copy .env.example to .env for local overrides:

cp .env.example .env

Set the active environment:

ENV=dev npm test      # dev (default)
ENV=qa npm test       # QA
ENV=staging npm test  # staging
ENV=prod npm test     # production

Each environment reads from .env.<env> with the .env file taking precedence.

Clone this wiki locally