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
git clone https://github.com/ValeriiMandryka/Boilerplate-Playwright-PlaywrightReport.git
npm install
npx playwright install
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
npx playwright test landing-page.spec.ts
Where "landing.page.spec.ts" can be changed on your own spec file
npm run open:PlaywriteReport
npm run open:CodeGenerator