Playwright
Instructions for getting your Playwright tests to run on Testery
Last updated
Was this helpful?
Instructions for getting your Playwright tests to run on Testery
Last updated
Was this helpful?
enables reliable end-to-end testing for modern web apps. Here's more information on with Playwright.
Your project requires simple modifications to your playwright config file.
Parallel
Testery will handle the level of parallelism for the test files, so for best result set this option to false. If you would like to keep this true for local runs and false for Testery, you can add an environment variable check for IS_TESTERY
and set to false
when present.
Retries
Testery also will handle any retries, so it's best to leave them at 0 when running on the cloud.
Viewport
Add the viewport option in your use
array for each project under the projects
array and set to 1920x1080
. This will allow better sized video and screenshots to be displayed in Testery.
If you want your captured screenshots to display in Testery, you'll need adjust the outputDir
option to a predefined path: ./screenshots
Also make sure your use
block to contains right value for screenshots to be taken. For example:
For better screenshot names, it's recommended to use a fixture instead.
Suggested Testery config example