Resources

Tools & integrations

Playwright Test

Verify a meaningful browser journey with observable assertions.

CodexClaude CodeCursor
Curated from MicrosoftFreeUnpinned upstream documentation snapshot · reviewed 2026-11-17; verify current version before setup

Use Playwright Test for repeatable browser checks around behavior that matters: completing a form, navigating a product flow, or reproducing a regression. Define the result a visitor should observe before writing locators or assertions.

Use the project’s existing test installation and configuration where possible. Prefer labels and roles that describe the UI, and isolate accounts, data, and browser state. Keep production writes and real messages out of fixtures. A passing locator assertion should reflect a real user outcome rather than implementation structure.

When a test fails, inspect the visible state or trace before adding retries. Timing, missing fixtures, and application bugs require different fixes. Keep the smallest useful evidence for the failure. A browser suite complements type checks and server tests; it does not replace them.

Get install instructions.

Documentation reviewedChecked 2026-11-17

Tool setup checked against official documentation. Pristren has not executed this workflow through this tool.

  1. Use the repository’s existing Playwright configuration where present. Otherwise follow the official introduction to select the package manager and install the test runner and browsers.
  2. The npm initialization below adds dependencies and configuration and may download browsers. Use the pnpm/yarn alternative in the official source when that is your project’s package manager.
  3. Create one meaningful browser test around an acceptance example, then use the documented runner for your configured project. Inspect a trace or visible state when it fails.
  4. Start Codex in the repository and read applicable AGENTS.md guidance. Include only the files this task needs.
  5. Use the official source below for current runtime requirements and package-manager-specific commands. Report the actual result and any unsupported environment.

npm project — initialize only if Playwright is not configured

npm init playwright@latest
Command reference

Run the configured browser suite

npx playwright test
Command reference
Official setup documentation

License and access: Apache-2.0 for Playwright. Browser distributions and tested services have their own notices and terms.

Part of a bigger picture.

Workflow

Improve website performance

Find the dominant loading or interaction cost and prove whether a focused change helps.

Prompt, setup & checksCodex / Claude Code / Cursor
Workflow

Prepare and deploy a web application

Create a concrete release package, verify environment requirements, and prepare a safe deployment.

Prompt, setup & checksCodex / Claude Code / Cursor
Workflow

Investigate and fix a bug

Turn a vague failure into a reproducible case and a focused regression fix.

Prompt, setup & checksCodex / Claude Code / Cursor

Sources and review notes