Boilerplate project created live on Twitch.tv/CharlyAutomatiza based on Playwright, TypeScript, Allure Report
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.
- Install a git client such as git bash
 
Download and install
- Latest version of Node.js
 - Java Development Kit (JDK)
- Make sure you have the environment variable JAVA_HOME set to the path of the respective JDK. (Required for Allure report generation).
 
 
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
For running Accessibility Testing examples with Lighthouse
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.