home/coding/playwright-instructions

Playwright.instructions

GPTClaudeDeepSeek··1,261 copies·updated 2026-07-14
playwright-instructions.prompt
---
description: Playwright testing conventions.
applyTo: "**/*.{spec,test}.{ts,tsx,js,jsx}"
---

# Playwright Instructions

## Stability

- Prefer role-based selectors (`getByRole`) when available.
- Avoid fixed sleeps.
- Use explicit waits for navigation and network idle only when needed.

## Structure

- Keep tests independent.
- Reset state between tests.

## Debugging

- On flaky tests, add logging and screenshots/video only where helpful.

fill the variables

This prompt has 2 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{spec,test}{ts,tsx,js,jsx}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo ReactSphere/awesome-copilot-agents (MIT). A "Playwright.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

ReactSphere/awesome-copilot-agents · MIT