Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keshavjha06/playwright-ts-orangehrm-website
A sample Automation Framework using Playwright and Typescript
https://github.com/keshavjha06/playwright-ts-orangehrm-website
eslint fixtures husky page-object-model playwright prettier prettier-config prettier-eslint typescript
Last synced: 3 days ago
JSON representation
A sample Automation Framework using Playwright and Typescript
- Host: GitHub
- URL: https://github.com/keshavjha06/playwright-ts-orangehrm-website
- Owner: keshavjha06
- Created: 2024-08-17T06:25:06.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-08-20T06:38:28.000Z (about 1 month ago)
- Last Synced: 2024-09-20T06:55:27.478Z (7 days ago)
- Topics: eslint, fixtures, husky, page-object-model, playwright, prettier, prettier-config, prettier-eslint, typescript
- Language: TypeScript
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playwright Typescript Automation Framework
This is a sample automation framework using Playwright and Typescript.
The framework is designed to run UI and API tests. It uses eslint for linting, prettier for formatting, and husky to run pre-commit checks. You can find different way how you could structure your tests without POM, with POM, with POM and custom fixtures.**Installing Dependencies:**
```bash
npm install
```**Installing Playwright**
```bash
npx playwright install --with-deps --chromium
npx playwright install --with-deps --webkit
```**Running the tests:**
```bash
npm run 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
```**Formatting:**
```bash
npm run format:fix
```**Linting:**
```bash
npm run lint:fix
```