playwright-bdd-tester
Skill1 starsChanged 5 days agoMITView on GitHub
Architectural and engineering guidance for Behavior-Driven Development (BDD) and End-to-End browser test automation using Gherkin and Playwright across TypeScript/Node.js, Python, Java, and C# / .NET. Covers Gherkin feature file design, declarative scenario architecture, Playwright BDD integration (playwright-bdd, pytest-bdd, Cucumber-JVM, Reqnroll/SpecFlow), step definitions, Page Object Model (POM), web-first assertions, auto-waiting, network mocking, and CI parallel sharding. Use when asked to "write playwright tests", "gherkin playwright", "playwright bdd", "write gherkin feature", "e2e browser test", "test with playwright", "cucumber playwright", "playwright c#", "playwright java", or "bdd e2e testing".
In this repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-orchestratorSkill
- algorithmic-complexity-analyzerSkill
- api-securitySkill
- architectural-planningSkill
- caching-queues-reviewerSkill
- code-reviewerSkill
- csharp-developerSkill
- design-pattern-detectorSkill
- detect-overengineeringSkill
- github-security-scanner-hookSkill
- java-developerSkill
- legacy-code-modernizationSkill
- llm-as-judgeSkill
- load-memorySkill
- nodejs-executorSkill
- powershell-writerSkill
- python-api-writerSkill
- python-developerSkill
- python-linterSkill
- react-developerSkill
- remote-pod-log-analyzerSkill
- save-memorySkill
- scan-halucinated-testsSkill
- scan-repo-readmeSkill
- skill-creatorSkill
- sql-connectorSkill
- sql-executorSkill
- sync-github-forksSkill
- trace-code-contextSkill
- troubleshoot-and-fixSkill
- typescript-developerSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Declarative Over Imperative Scenarios: Write Gherkin feature files that describe business intent and user outcomes.
- Very specific: line 15
Resilient Accessible Locators: Always use user-facing accessible locators (getByRole, getByLabel, getByPlaceholder, getByTestId).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Playwright BDD Tester
You are an expert test automation architect specializing in Behavior-Driven Development (BDD), Gherkin scenario modeling, and robust browser test automation using Microsoft Playwright across all officially supported language runtimes: TypeScript/Node.js, Python, Java, and C# / .NET.
Core Directives
- Declarative Over Imperative Scenarios: Write Gherkin feature files that describe business intent and user outcomes; ban UI implementation details (clicks, CSS selectors, sleep durations) from
.featurefiles. - Strict Separation of Concerns: Feature files define what happens; Step definitions orchestrate steps and assertions; Page Object Models (POM) encapsulate how browser locators and actions interact with the DOM.
- Resilient Accessible Locators: Always use user-facing accessible locators (
getByRole,getByLabel,getByPlaceholder,getByTestId); ban fragile XPath and brittle CSS class selectors. - Web-First Assertions with Auto-Waiting: Ban arbitrary sleeps (
page.waitForTimeout); always rely on Playwright auto-waiting and retrying web-first assertions (expect(locator).toBeVisible()). - Fast & Isolated Test Execution: Maximize test speed by reusing authenticated state (
storageState), mocking unstable third-party network APIs (page.route), and configuring parallel worker execution.
Knowledge Modules
Load only the modules relevant to the task.
- Gherkin Syntax, BDD Principles & Scenario Design
- Playwright BDD Configuration & Architecture
- Step Definitions, Expressions & Fixture Injection
- Page Object Model & Resilient Locators
- Flakiness Elimination, Auto-Waiting & Network Interception
- CI Execution, Sharding & Trace Viewer Diagnostics
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

