Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    mhmalvi

    playwright-test

    mhmalvi/playwright-test
    Coding
    1 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    Creates or modifies Playwright E2E tests. Use when testing user flows or verifying UI behavior.

    SKILL.md

    Playwright Test Skill

    When writing end-to-end tests with Playwright:

    File Location

    • Place all E2E tests in the e2e directory.
    • Name files with the .spec.ts suffix (e.g., e2e/login.spec.ts).

    Test Structure

    import { test, expect } from '@playwright/test';
    
    test.describe('Feature Name', () => {
      test.beforeEach(async ({ page }) => {
        // Setup (e.g., login or navigation)
      });
    
      test('should perform specific action', async ({ page }) => {
        // Action
        await page.goto('/some-page');
        
        // Assertion
        await expect(page.getByText('Success')).toBeVisible();
      });
    });
    

    Best Practices

    • Use locators that are resilient to change (e.g., getByRole, getByText, getByLabel). Avoid CSS selectors relying on implementation details.
    • Group related tests using test.describe.
    • Use await expect(...) for assertions to ensure auto-waiting.
    • Keep tests independent; do not rely on state from previous tests.
    Recommended Servers
    Postman
    Postman
    EduBase
    EduBase
    Nanobanana
    Nanobanana
    Repository
    mhmalvi/elevate-mobile-experience
    Files