Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ValeriiMandryka/Boilerplate-Playwright-PlaywrightReport

Browsers: [Chromium, Firefox, Webkit ]; mobile: [ MobileChrome, MobileSafari ]; Reporter: [Playwright Report ]
https://github.com/ValeriiMandryka/Boilerplate-Playwright-PlaywrightReport

chromium firefox playwright-report webkit

Last synced: 15 days ago
JSON representation

Browsers: [Chromium, Firefox, Webkit ]; mobile: [ MobileChrome, MobileSafari ]; Reporter: [Playwright Report ]

Awesome Lists containing this project

README

        

# Boilerplate-Playwright-PlaywrightReport-AllureReport
Template repository for project based on Playwright framefork with configurated GitHub actions and Allure report. Can be used for auto testing on Chromium/Firefox/Webkit browsers and MobileChrome/MobileSafari also icluded Docker

## NOTICE! To run tests on different browsers Antivirus tool should be switched off

## Envoirment:
1. [Node.js](https://nodejs.org/uk/)
2. [VSC](https://code.visualstudio.com/download)

## Steps to install project

## 1. Run command in VSC:

```
git clone https://github.com/ValeriiMandryka/Boilerplate-Playwright-PlaywrightReport.git

```
## 2. Into root of Project run commands:
```
npm install

npx playwright install

```
## 3. Run tests commands:

3.1 - it will run all tast in Hedless mode

npm run Alltests-Headles
3.2 - it will run all tast in UI mode

npm run Alltests-Headed
3.3 - it will run all tast in Hedless mode in Chrome browser

npm run Tests:Headless-on-Chromium
3.4 - it will run all tast in Hedless mode in Firefox browser

npm run Tests:Headless-on-Firefox
3.5 - it will run all tast in Hedless mode in Safari browser

npm run Tests:Headless-on-Safari
3.6- it will run all tast in Hedless mode on Mobile Pixel 15

npm run Tests:Headless-on-mobileChrome-Pixel5
3.7 - it will run all tast in Hedless mode on Mobile Iphone 12

npm run Tests:Headless-on-mobileSafari-Iphone12
3.8 - it will run all tast in UI mode in Chrome browser

npm run Tests:Headed-on-Chromium
3.9 - it will run all tast in UI mode in Firefox browser

npm run Tests:Headed-on-Firefox
3.10 - it will run all tast in UI mode in Safari browser

npm run Tests:Headed-on-Safari
3.11 - it will run all tast in UI mode on Mobile Pixel 15

npm run Tests:Headed-on-mobileChrome-Pixel5
3.12 - it will run all tast in UI mode on Mobile Iphone 12

npm run Tests:Headed-on-mobileSafari-Iphone12


## 4. Running a single test file:

```
npx playwright test landing-page.spec.ts

```
Where "landing.page.spec.ts" can be changed on your own spec file



## 6. Open Playwright Report:

```
npm run open:PlaywriteReport
```

## 8. To run Code Generator :

```
npm run open:CodeGenerator
```