This website is built using Docusaurus v2. Content is pulled from the microsoft/playwright repo.
npm installSRC_DIR=../playwright npm run rollnode src/versions.js --delete 1.16npm run start-nodejsSee package.json for other languages (java, python, .NET).
npm run build
npm run serveIf you don't already, you might need to set the default shell to bash.
npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"You can revert it later, if you have issues, by doing:
npm config delete script-shellIn some cases, the postinstall script doesn't auto-run after npm install, in which case, you can run that manually:
npm run postinstallThat should bring your environment to a state ready for testing.
To roll the docs in PowerShell, make sure you set the env variable correctly, i.e.:
$env:SRC_DIR="C:\Users\user\src\playwright"; npm run rollRun this on one terminal:
npm run start-nodejsand this on another, it will automatically use the local docusaurus server:
npx playwright test nodejsYou can set the BASE_URL=https://playwright.dev env var, otherwise http://localhost:3000 gets used by default.
- Go to the Cherry-picking GitHub Actions workflow
- Execute it with the version number e.g.
1.25and a comma separate list of commit SHA hashes (from the main branch) - Wait for a PR getting created, review it and merge it
- Go to the Release GitHub Actions workflow
- Execute it with the version number e.g.
1.25and wait for the PR getting created. The PR will copy changes from the release branch in playwright repo. - Review the PR and merge it.