What problem does it solve?
Writing and maintaining end-to-end tests with Cucumber and Playwright requires balancing executable specifications with reliable browser automation. This Skill provides the conventions and review criteria needed to keep Dify's E2E suite readable, isolated, and aligned with real user behavior.
Core Features & Use Cases
- Scenario Design: Write Gherkin scenarios that describe user-visible behavior rather than UI implementation details.
- Step Definition Reuse: Reuse existing steps when behavior matches, and add new steps only when the behavior is materially different.
- Locator and Assertion Strategy: Apply Playwright best practices for user-facing locators, web-first assertions, and per-scenario isolation.
- Use Case: Review a new feature file under
e2e/ to verify that scenarios use behavior-oriented language, that locators rely on roles or labels, and that assertions use Playwright's auto-retrying semantics.
Quick Start
Use the e2e-cucumber-playwright skill to review the new login scenario under e2e/tests for behavior-oriented wording and proper Playwright locator usage.