Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By TheBushidoCollectivev1.1.0Apache-2.0In 1 marketplace
Creates Gherkin feature files and step definitions for Playwright BDD tests, including config and Page Object Model patterns. Stop and SubagentStop hooks run bddgen after each response to regenerate Playwright test files from feature files.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Validation and quality enforcement for Playwright BDD projects with Gherkin feature files and step definitions.
This plugin provides skills and hooks for behavior-driven development (BDD) testing using playwright-bdd. It helps you write, maintain, and validate Gherkin feature files and step definitions that integrate with Playwright Test.
This plugin provides the following skills:
defineBddConfig(), feature paths, step definitions, and Playwright integrationGiven/When/Then, custom fixtures, and Page Object ModelSkills can be invoked using the Skill tool:
Skill("playwright-bdd:playwright-bdd-configuration")
Skill("playwright-bdd:playwright-bdd-step-definitions")
Skill("playwright-bdd:playwright-bdd-gherkin-syntax")
This plugin includes hooks that automatically regenerate Playwright test files from feature files before completing work. The hooks run when:
*.feature) are modifiedThe hook discovers directories with a Playwright configuration only when their nearest package.json declares playwright-bdd in dependencies or devDependencies. It selects the first existing config in this order: playwright.bdd.config.ts, playwright.bdd.config.js, playwright.config.ts, playwright.config.js. It passes that filename to npx bddgen --config:
han hook run playwright-bdd generate
This ensures your generated test files stay synchronized with your feature files.
han plugin install playwright-bdd
Your project must have playwright-bdd installed:
npm install -D playwright-bdd @playwright/test
# features/login.feature
Feature: User Login
Scenario: Successful login
Given I am on the login page
When I enter valid credentials
Then I should see the dashboard
// steps/login.steps.ts
import { createBdd } from 'playwright-bdd';
const { Given, When, Then } = createBdd();
Given('I am on the login page', async ({ page }) => {
await page.goto('/login');
});
When('I enter valid credentials', async ({ page }) => {
await page.getByLabel('Email').fill('[email protected]');
await page.getByLabel('Password').fill('password');
await page.getByRole('button', { name: 'Login' }).click();
});
Then('I should see the dashboard', async ({ page }) => {
await expect(page.getByRole('heading', { name: 'Dashboard' })).toBeVisible();
});
// playwright.config.ts
import { defineConfig } from '@playwright/test';
import { defineBddConfig } from 'playwright-bdd';
const testDir = defineBddConfig({
features: 'features/**/*.feature',
steps: 'steps/**/*.ts',
});
export default defineConfig({
testDir,
});
npx bddgen
npx playwright test
Recommended directory structure:
project/
├── playwright.config.ts
├── features/
│ ├── auth/
│ │ └── login.feature
│ └── products/
│ └── catalog.feature
├── steps/
│ ├── auth/
│ │ └── login.steps.ts
│ ├── products/
│ │ └── catalog.steps.ts
│ └── fixtures.ts
└── .features-gen/ # Generated (add to .gitignore)
7-day copy clicks
npx claudepluginhub thebushidocollective/han --plugin playwright-bddBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground