merchant-playwright-tests
v1.0.0
Published
UI, API and Visual tests for merchant portal.
Readme
Playwright Tests
Building Docker image locally
ECR_REGISTRY=804535975531 RELEASE_VERSION=dev make ci-buildRunning Docker image locally
replace XXX with the relevant env vars for the tests, like USER_EMAIL and USER_PASSWORD
docker run -e TENANT=hsbc -e ENV=testing -e TYPE=smoke -e LOCATION=ci -e XXX=xxx 804535975531.dkr.ecr.eu-west-1.amazonaws.com/merchant-playwright-tests:devVisual Tests
Add/Update base screenshots
Screenshots will be slighlty different on Docker Ubuntu because of how the fonts are rendered.
Screenshots from locally run tests won't work. Running them on Docker Ubuntu locally also proved useless, for some reason the fonts still rendered differently.
To add new base screenshots:
- Write and run a local test.
- Don’t commit local screenshots.
- Push changes.
- Run the “Grab Base Screenshots” workflow on GitHub Actions for your branch.
- New screenshots should appear in the artifacts.
- Copy and commit them.
To update base screenshots:
- Delete the outdated screenshots.
- Push changes.
- Run the “Grab Base Screenshots” workflow on GitHub Actions for your branch.
- New screenshots should appear in the artifacts.
- Copy and commit them.
Remember, there are desktop and mobile screenshots.
