E2e Tests Studio
mastra-ai/mastraOfficial
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
Own this skill? Claim it
What it does
- Covers the BDD workflow for
packages/playground-uiandpackages/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.describeper unit, onewhenprecondition 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 -yInstalls 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 4Similar to E2e Tests Studio
More Testing & QAplaywright-e2e-testingfugazi/test-automation-skills-agents646 installsAuthoring and maintaining versioned Playwright TypeScript UI specs for browser user flows, with API-setup and mocking.
e2e-testing-patternswshobson/agents25.6K installsPractical E2E testing guidance for Playwright and Cypress covering selectors, flaky-test fixes, and debugging workflows.
playwright-e2e-builderdavila7/claude-code-templates245 installsInterview-driven Playwright E2E suite builder covering POM, auth state reuse, fixtures, visual regression, and CI sharding.
vue-testing-best-practicesantfu/skills17.2K installsTesting guide for Vue.js components covering Vitest, Vue Test Utils, mocking, and Playwright E2E tests.
e2e-testinghieutrtr/ai1-skills1.6K installsPlaywright E2E testing patterns for full-stack Python/React apps, covering page objects, selectors, waits, and auth reuse.