Skip to content
mastra-ai avatar

E2e Tests Studio

Playwright E2E tests for studio UI changes that verify product behavior rather than UI states.

CCM score
74 of 100
skills.sh installs
2.5K
GitHub stars
29.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the BDD workflow for packages/playground-ui and packages/playground, including feature intent, build steps, and a feature-to-behavior mapping table
  • Includes a test structure template and patterns for provider selection, data persistence, and tool execution checks
  • Enforces one outer test.describe per unit, one when precondition per group, and one observable outcome per test
  • Designed for contributors modifying React components or studio features that need Playwright MCP-driven validation

Install

$ npx -y skills add mastra-ai/mastra --skill e2e-tests-studio -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

E2E Behavior Validation for Frontend Modifications

Core Principle: Test Product Behavior, Not UI States

CRITICAL: Tests must verify that product features WORK correctly, not just that UI elements render.

What NOT to test (UI States):

  • ❌ "Dropdown opens when clicked"
  • ❌ "Modal appears after button click"
  • ❌ "Loading spinner shows during request"
  • ❌ "Form fields are visible"
  • ❌ "Sidebar collapses"

What TO test (Product Behavior):

  • ✅ "Selecting an LLM provider configures the agent to use that provider"
  • ✅ "Creating a new agent persists it and shows in the agents list"
  • ✅ "Running a tool with parameters returns the expected output"
  • ✅ "Chat messages stream correctly and maintain conversation context"
  • ✅ "Workflow execution triggers tools in the correct order"

BDD Structure (REQUIRED)

Every E2E spec MUST follow the same BDD shape as the MSW tests. In packages/playground, e2e-bdd/test-needs-when-describe enforces this shape.

The structure has exactly three levels:

Details

Repository
github.com/mastra-ai/mastra
Categories
Testing & QA, Frontend & UI Code
First seen
May 16, 2026

More from mastra-ai/mastra

All 4

Similar to E2e Tests Studio

More Testing & QA