To set this Playwright boilerplate project, you can follow these steps
Make sure you have Node.js and npm installed on your machine. You can download and install them from the official Node.js website: Node.js.
Open your terminal or command prompt and navigate to the directory where you want to create your project. Then, run the following command to install the required dependencies.
yarn install
yet to configure eslint/prettier
playwright - Test Framework
.
├── / # root directory with project-wide configs and folders
├── /playwright.config.ts # Configurations related to framework & browser
├── /tests # Tests folder
├── /tests/pageObjects/ # Page objects folder
├── /package.json # Framework dependencies
In order to run the end-to-end playwright tests locally follow these steps:
Chrome browser yarn run test
Using wdio visual service, we can compare the webpages, elements against baseline images
To run visual tests
yarn run test:visual