Troubleshooting Playwright
Troubleshooting Playwright integration with Currents
If you are experiencing issues with using @currents/playwright, enable debug mode to collect more information about the failure and submit a support request via our support channels.
1. Collecting Environment Information
Please collect the following information to help us effectively debug the problem:
The associated dashboard Run URL
Screenshots if applicable
Your setup method and configuration files
The exact command used to run playwright
Environment information (use the command below)
Use the following command to print information about your CI environment
npx envinfo --system --binaries --browsers --npmPackages --duplicates --npmGlobalPackages2. Activate Debug Mode
Capture and share the full debug log - that will help the support person identify the root cause faster
@currents/playwright simplifies collecting the debug information by automatically uploading the logs to Currents.
To enable uploading the debug logs:
For
pwccommand-line executable runpwc --pwc-debug=fullORFor
pwc-prunpwc-p --pwc-debug=fullORSet environment variable
DEBUG=currents* playwright test...
--pwc-debug enables uploading the debug logs to our servers (see --pwc-debug [boolean | "remote" | "full"]:
remoteuploads the debug logs to Currents servers;fullprints the logs to stdout and also upload them to Currents.
For example:
npx pwc --pwc-debug=full ... npx pwc-p --pwc-debug=full ... # on Linux
CURRENTS_PROJECT_ID=PROJECT_ID \ // the projectId from https://app.currents.dev
CURRENTS_RECORD_KEY=RECORD_KEY \ // the record key from https://app.currents.dev
CURRENTS_CI_BUILD_ID=hello-currents \ // a unique CI build ID
CURRENTS_DEBUG=full \
npx playwright test
# on Windows
## - set the environment variables first
cmd /V /C ^
set CURRENTS_DEBUG=full ^
set CURRENTS_PROJECT_ID=project_id&& ^
set CURRENTS_RECORD_KEY=record_key&& ^
set CURRENTS_CI_BUILD_ID=unique_build_id
## - the run the command
npx playwright test ...When enabled, the debug logs will be uploaded to Currents servers and a confirmation message will be shown after the run's completion, for example:

Last updated
Was this helpful?