This is kind of proof of concept for Unitedcode test automation framework using Playwright.
You will need to run this code:
Node.js -v 16+npm -v 8+
- Clone this repo
- run
npm i - run
cp ./.env.example ./.env- This config is also personal, so you could modify it as you like
- run code with
npm run test - [optional] to use playwright test runner, run
npm run test-ui - [optional] to check the code quality run
npm run lint
CIforbids run tests withonlyand in headless mode. defaults to be empty (false)RETRIESshows how many times framework should retry on failure before treating test as failed. Defaults to 0WORKERSdefines how many workers we should use. It's better to use 1 in case of headed mode, but for headless we could try more. Defaults to 1BROWSER- which browser should we use. Should contain one of["chrome", "edge", "firefox", "safari"], defaults to"chrome"BASE_URLdefines base URL of frontend app. Defaults to"https://www.douglas.de/de/"HEADLESSallows to run browser in headless mode. Options"true" | "false", defaults to"false"TRACE_ON_FAIL_ONLYallows Playwright to get trace on retries only ("true") or always("false"). Defaults to"false"