Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/monikakonieczna/playwright-ts-project

Example project for Test Automation in Playwright & Typescript for demo site: Swag Labs.
https://github.com/monikakonieczna/playwright-ts-project

playwright playwright-typescript playwright-ui swaglabs test-automation testing typescript

Last synced: 25 days ago
JSON representation

Example project for Test Automation in Playwright & Typescript for demo site: Swag Labs.

Awesome Lists containing this project

README

        


Practice test automation with Playwright Logo on Swag Labs

> **Note**
>
> + **Swag Labs** is basic online store with required login from Sauce Labs. Great for example web UI tests.
>
## PLaywright features
End to End testing using:

- Playwright https://playwright.dev/
- TypeScript https://www.typescriptlang.org/

This tests are purely for Playwright features practice, usage of Page Object Model.

## Getting Started

### Prerequisites
Install Playwright and browser binaries for Chromium, Firefox and WebKit.
```shell
npm i -D playwright
```
You need to have Node.js installed.

## Useful Commands

### Run All Tests

```shell
npm run play:test
```
### Run Tests for Sorting Feature
```shell
npm run test-s
```
### Run Tests for Login Feature
```shell
npm run test-l
```
### Run Tests for Cart Feature
```shell
npm run test-c
```