Home

Awesome

This project was bootstrapped with playwright.

Testing site used - UI Testing Playground

For fast run, fork the repo and run it from local. Otherwise, change the below

KeyValueFile
env.*.urlhttp://uitestingplayground.com/src/apps/ui-testing-playground/config.json
urlContainsuitestingplaygroundsrc/apps/ui-testing-playground/data/home.data.json

:sparkles: Available Scripts

In the project directory, you can run:

CommandDescription
<code>yarn && yarn playwright install</code>to install dependencies (always run this first before running any other commands)
<code>yarn test</code>to run tests
<code>yarn test:debug</code>to run tests in debug mode
<code>yarn report</code>to serve default report
<code>yarn allure</code>to serve allure report

:exclamation:Note: By default the tests are run in <code>headless</code> mode. Screenshots will not be captured in this mode as it causes problems during validation between headless and headed mode. For validating screenshots, change the below in <code>src/apps/ui-testing-playground/playwright.config.js</code>

FieldValue
headlessfalse
retries0

During the first run, the screenshots will be baselined and no validations will be done during this run. Once the run is complete, change the <code>retries</code> back to the number of retries you need.

Starting second run, the screenshots will be compared with the baseline screenshot.

For implementation of this framework for a brand new application. Check here