Boilerplate project for Web/API Test Automation created live on Twitch based on Playwright - TypeScript - Allure Report - Lighthouse
You can access my YouTube channel for more information about this and other automated testing frameworks.
Esta documentación está disponible también en Castellano.
Download and install
git clone https://github.com/charlyautomatiza/starter-playwright.git
npm install
npm run test
npm run test-head
npm run firefox
npm run chromium
npm run webkit
npm run api-ui
npm run data-mgmt
IMPORTANT:
To run your own Mockaroo examples you should create a free account, create a new schema and create a new .env file with your API_KEY
Example .env:
API_KEY=000zz999
npm run a11y
IMPORTANT:
In the thresholds
section of the a11y.lighthouse.spec.ts file, you can configure the acceptance level of the accessibility
, performance
, SEO
, best-practices
, pwa
respectively.
If our threshold is 100 for accessibility
, our test must have 100% acceptance to be considered successful.
thresholds: {
performance: 50,
accessibility: 100,
'best-practices': 50,
seo: 50,
pwa: 0,
},
npm run play-report
npm run open-report
After each upgrade of Playwright, the project must be restarted locally with the command:
npm run reinstall
To download the latest versions of the Browsers.