cucumber-playwright

Integrates Cucumber.js with Playwright for BDD end-to-end web testing.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/cooldaemon/dotfiles --skill cucumber-playwright
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cucumber-playwright
Source: https://github.com/cooldaemon/dotfiles/tree/main/.claude/skills/cucumber-playwright
Command: npx skills add https://github.com/cooldaemon/dotfiles --skill cucumber-playwright

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines end-to-end testing by integrating Behavior-Driven Development (BDD) with Playwright, enabling clearer communication and more maintainable test suites.

Core Features & Use Cases

  • BDD Scenarios: Write tests in Gherkin (Given/When/Then) for better readability and collaboration.
  • Playwright Integration: Leverage Playwright's powerful browser automation capabilities for robust testing.
  • Use Case: Develop and execute end-to-end tests for a web application, ensuring features function as expected from a user's perspective, using clear, business-readable scenarios.

Quick Start

Execute cucumber-js tests using the provided features and step definitions.

Frequently Asked Questions about cucumber-playwright

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write E2E tests using Cucumber and Playwright?

You can write E2E tests by defining scenarios in Gherkin syntax and implementing TypeScript step definitions that execute Playwright browser automation commands. This integration manages the browser lifecycle and shares the Playwright page context across steps.

What is BDD end-to-end testing with Playwright?

BDD end-to-end testing with Playwright is an approach where you write web application validation tests in business-readable Gherkin Given/When/Then syntax. This enables clearer communication and maintainability by bridging Cucumber.js behavior scenarios with Playwright browser automation.

Can I use TypeScript with Cucumber.js step definitions for Playwright automation?

Yes, you can use TypeScript to write Cucumber.js step definitions for Playwright automation. This Skill provides the setup to bind Gherkin scenarios to TypeScript code, ensuring type-safe web application validation while managing the browser context.

Does Cucumber.js integration share Playwright page context across steps?

Yes, Cucumber.js integration shares the Playwright page context across steps. It manages the browser lifecycle automatically, allowing different Gherkin step definitions to interact with the same browser page instance for continuous web validation.

What's the best way to structure web application validation using Gherkin syntax?

The best way to structure web validation is using Gherkin Given/When/Then syntax to describe user perspectives. This Skill facilitates Behavior-Driven Development by mapping these business-readable scenarios to Playwright actions, ensuring features function as expected.