Skip to content

Test Automation framework using Playwright and TypeScript

Notifications You must be signed in to change notification settings

sadabnepal/playwright-test-ui-api

Repository files navigation

Playwright TypeScript Test Automation Framework

Requirements:

NodeJs VSCode

Getting Started:

Clone Repository

git clone https://github.com/sadabnepal/playwright-test-ui-api.git
cd playwright-test-ui

Install Packages

npm install
npm run prepare

Install Browsers

npx playwright install --with-deps --chromium
npx playwright install --with-deps --webkit

Run tests and Generate Report

npm test            [ run all tests ]
npm run test:chrome [ Run UI tests in Chromium ]
npm run test:webkit [ Run UI tests in Webkit ]
npm run test:api    [ Run API tests ]

Code Analyze and Fix

npm run lint
npm run lint:fix

check script section of package.json for more test commands

TODO:

  • update readme file

Sample Report:

Report