We are trying to configure, playwright browser tests on Bitbucket Pipeline as code is in same repo of Bitbucket.
While running it on local with below commands its working fine and reports are also getting generated. In total 72 tests are running and report is generated.
Below are the commands:
- npm ci
- npx playwright install --with-deps
- npx playwright test
- npx playwright show-report
Whereas if I tried to run the same script using Bitbucket yaml file its getting stuck at - npx playwright test and after 2 to 3 tests it is getting stuck and then logs are also getting stuck, after 2 hours build is showing Exceeded build time limit of 120 minutes error.
bitbucket-pipelines.yml
image: mcr.microsoft.com/playwright:v1.42.0-jammy
pipelines:branches:
main:
- step:
name: Playwright Tests
caches:
- node
script:
- npm ci
- npx playwright install --with-deps
- npx playwright test
- npx playwright show-report
devops/PB-2448-Web_Automation-2:
- step:
name: Playwright Tests
caches:
- node
script:
- npm ci
- npx playwright install --with-deps
- npx playwright test
- npx playwright show-report
Ill be attaching Screenshots of Bitbucket pipeline for reference.
Please help me on this, I got stuck here from a while.

