From fairmind-integration
Use when implementing automated testing with Playwright, including E2E tests, visual testing, or using the Playwright MCP tools for browser automation. This skill covers test patterns, selector strategies, and CI integration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fairmind-integration:qa-playwrightThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides guidance for automated testing using Playwright, including E2E testing, visual regression, and browser automation via MCP tools.
This skill provides guidance for automated testing using Playwright, including E2E testing, visual regression, and browser automation via MCP tools.
Announce at start: "I'm using the qa-playwright skill for this testing implementation."
Use this skill when:
Before writing tests:
Follow this order:
| File | Content | When to Use |
|---|---|---|
references/test-patterns.md | Test organization, fixtures | Test structure |
references/selectors.md | Locator strategies | Element selection |
references/visual-testing.md | Screenshot comparison | Visual regression |
references/mcp-tools.md | Playwright MCP tools | Browser automation |
references/ci-integration.md | CI/CD patterns | Pipeline setup |
When working on Fairmind tasks:
fairmind-context skill for requirementsThe Playwright MCP server provides browser automation:
// Navigate
mcp__playwright__browser_navigate({ url: "http://localhost:3000" })
// Take snapshot (accessibility tree)
mcp__playwright__browser_snapshot()
// Click element
mcp__playwright__browser_click({ element: "Login button", ref: "button[name='login']" })
// Fill form
mcp__playwright__browser_type({ element: "Email input", ref: "input[name='email']", text: "[email protected]" })
// Screenshot
mcp__playwright__browser_take_screenshot({ filename: "login-page.png" })
// Example: Login flow test
import { test, expect } from '@playwright/test';
import { LoginPage } from './pages/login.page';
test.describe('Authentication', () => {
let loginPage: LoginPage;
test.beforeEach(async ({ page }) => {
loginPage = new LoginPage(page);
await loginPage.goto();
});
test('successful login redirects to dashboard', async ({ page }) => {
await loginPage.login('[email protected]', 'password123');
await expect(page).toHaveURL('/dashboard');
await expect(page.getByRole('heading', { name: 'Dashboard' })).toBeVisible();
});
test('invalid credentials shows error', async () => {
await loginPage.login('[email protected]', 'wrongpass');
await expect(loginPage.errorMessage).toBeVisible();
await expect(loginPage.errorMessage).toHaveText('Invalid credentials');
});
});
After completing tests:
npx claudepluginhub fairmind-gen-ai-studio/fairmind-integration --plugin fairmind-integrationProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.