Run Playwright visual regression tests in Bitbucket Pipelines inside a Playwright Docker image that matches your project’s Playwright version, install dependencies with your lockfile, and start with one worker in CI. Use toHaveScreenshot() to compare pages with committed reference images, then retain reports and failure output as pipeline artifacts so reviewers can inspect changes.
Configure a Bitbucket Pipelines step for Playwright
Playwright recommends using its public Docker image in Bitbucket Pipelines. The following is a Node.js example using the documented image tag mcr.microsoft.com/playwright:v1.63.0-noble. Treat that tag as a versioned example: align the image version with the Playwright package installed by your project, and adjust the package manager, artifact paths, and test command to match your repository.
As an Amazon Associate I earn from qualifying purchases.
image: mcr.microsoft.com/playwright:v1.63.0-noble
pipelines:
default:
- step:
name: Playwright visual tests
caches:
- node
script:
- npm ci
- npx playwright test
artifacts:
- test-results/**
- playwright-report/**
Put this configuration in bitbucket-pipelines.yml at the repository root. The step uses a Docker image, runs commands from the script, optionally caches Node dependencies, and retains the listed artifact paths. The node cache is only an example; use a cache appropriate to the repository. Artifact paths are relative to the clone directory.
Free tools Windows power users keep installed
One-click scans. No signup required.
Make the image and project versions agree
The Docker image provides a controlled browser environment, but it must stay aligned with the Playwright version in the project. If the project’s Playwright dependency changes, review the image tag too. Version mismatch can undermine reproducibility and cause browser or test-runner compatibility problems.
#1 Best Overall
- CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
- INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
- THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
- WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
- A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents
Install dependencies and run the tests
npm ci installs the versions recorded by the npm lockfile, while npx playwright test runs the Playwright Test suite. Keep the lockfile committed and use the corresponding install command for another package manager. The pipeline step needs enough runner resources for the chosen test workload; no single runner size or worker count is right for every project.
Add a screenshot comparison and create its baseline
Use Playwright Test’s screenshot assertion to compare a page with a reference image:
import { test, expect } from '@playwright/test';
test('landing page matches its visual baseline', async ({ page }) => {
await page.goto('https://example.com');
await expect(page).toHaveScreenshot('landing.png');
});
Replace the example URL with the page your test should cover. On its first run, Playwright creates the reference screenshot. Review that image and commit the generated snapshot directory to version control. Subsequent runs compare the captured page against the committed reference. Set the snapshot output location in your Playwright configuration if you want it somewhere other than Playwright’s default.
Rank #2
- CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
- 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
- SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
- INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
- THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
Keep the page state stable
Before capturing, ensure the page has reached the state the test is intended to verify. Data, animations, time-dependent text, or other volatile content can produce diffs that do not reflect a meaningful product change. Prefer controlling test data and page state. Playwright also supports a stylesheet option to hide or neutralize genuinely irrelevant dynamic elements; avoid masking content whose visual changes matter to the test.
Make screenshot results reproducible in CI
Screenshot output can vary with operating system, browser version, settings, hardware, power source, and headless mode. Generate and compare baselines in the same controlled environment: use the same operating system and browser environment, the matching Playwright version, and consistent relevant settings. A baseline produced locally in a different environment may create noise when compared with a CI capture.
Use one worker as the starting point
Playwright recommends setting workers to 1 in CI to prioritize stability and reproducibility. Add this to your Playwright configuration if you want the setting explicit:
Rank #3
- Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
- Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
- Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
- In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
- Ultra-thin bezels: Maximize your viewing experience with thin bezels.
import { defineConfig } from '@playwright/test';
export default defineConfig({
workers: 1,
});
Consider increasing workers only after checking runner capacity and confirming that tests remain stable when they run concurrently.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Update baselines as reviewed changes
When an intentional UI change requires new references, run npx playwright test --update-snapshots, inspect the resulting image changes, and commit only the approved updates. Do not make snapshot updates an automatic response to every CI diff: doing so can accept unintended visual regressions as the new baseline.
Keep reports and failure output available for review
Bitbucket artifacts let a pipeline step retain files such as Playwright reports and test output for later inspection. The example configuration saves test-results/** and playwright-report/**; make sure those directories match where your tests actually write files. Artifact paths must be inside BITBUCKET_CLONE_DIR.
Rank #4
- CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
- SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
- MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
- KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
- INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
Atlassian documents a maximum artifact retention of 14 days and a 1 GB size limit. These are service limits, so check Atlassian’s current documentation if your retention or storage needs depend on them. Keep only the files reviewers need, particularly if full-page screenshots or reports make artifacts large.
Browser caching is optional
Playwright generally does not recommend caching browser binaries because restoring the cache can take about as long as downloading the binaries. If you choose to cache them, key the cache against the Playwright version so a browser cache from a different version is not reused accidentally.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsTroubleshoot common CI visual-test failures
- Tests pass locally but fail in CI with screenshot diffs: check whether the baseline and CI capture use the same operating system, browser version, Playwright version, settings, and headless mode. Stabilize test data and page state before changing snapshots.
- Browser launch or missing-browser errors: confirm the pipeline step uses a Playwright image appropriate for the project’s installed Playwright version. Review the image tag and dependency versions together.
- Tests are flaky or behave differently under load: begin with one worker in CI. Increase concurrency only after checking runner capacity and the stability of parallel execution.
- Artifacts are missing: verify the configured output directory and make the artifact glob match it. Paths must be relative to the clone directory and remain inside
BITBUCKET_CLONE_DIR. - Artifact upload exceeds a limit: check the current artifact size and retention limits, then reduce the files retained or adjust the reporting approach. Atlassian’s documented limits are 1 GB and 14 days.
- Browser-cache restore does not save time: Playwright notes that restoring browser binaries can take about as long as downloading them. Remove that cache if it is not beneficial; if retained, key it by Playwright version.
- Snapshot updates unexpectedly replace references: ensure
--update-snapshotsis not part of the normal CI test command. Run it deliberately and review the image diffs before committing.
Or skip the browser setup
If your goal is to capture a website rather than maintain Playwright-managed visual baselines, ScreenshotNeo offers a screenshot API and MCP server. A single GET request can return an image or PDF; the API also supports clean captures that accept consent banners and remove known consent platforms, newsletter popups, and chat widgets before capture. See the API documentation for request options.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
ScreenshotNeo identifies bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits in the response; only clean shots are billed. Its MCP server provides screenshot and page-information tools for AI agents. The Free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for 1,000 free screenshots a month with no card.
Best Value
- 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
- 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
- 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.
Frequently Asked Questions
Where should I store Playwright screenshot baselines?
Commit the reviewed reference screenshots in the repository’s Playwright snapshot directory so test runs can compare against version-controlled images.
Should I cache Playwright browsers in Bitbucket Pipelines?
Usually not as a first choice: Playwright says restoring browser binaries can take about as long as downloading them. If you do cache them, key the cache to the Playwright version.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




