Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```