Agent skill
playwright-e2e
Visual E2E testing workflow for frontend UI changes. Use after modifying Svelte components, layouts, or styles to verify the UI renders correctly.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/testing/playwright-e2e-trevors-strieber-gpt-3
SKILL.md
Playwright E2E Testing
Visual testing workflow for the Strieber chat UI frontend.
When to Use
After making changes to:
- Svelte components (
frontend/src/**/*.svelte) - CSS/styles (
frontend/src/app.css, Tailwind classes) - Layout structure
- Any visible UI element
Run Tests
docker compose run --rm playwright-test
This builds the production bundle and runs Playwright tests in headless Chromium.
View Screenshots
After tests complete, read the screenshots:
frontend/test-results/screenshots/layout-desktop.png # 1280x720 desktop view
frontend/test-results/screenshots/layout-mobile.png # 375x667 mobile view
Use the Read tool on these PNG files to visually verify the UI.
Verification Checklist
- Layout renders correctly (sidebar, main area)
- Colors/theme applied properly
- Responsive behavior works (mobile hides sidebar)
- No visual regressions from previous state
- Text is readable and properly positioned
Adding New Tests
Create tests in frontend/e2e/<feature>.spec.ts:
import { test, expect } from '@playwright/test';
test('my feature test', async ({ page }) => {
await page.goto('/');
// Take screenshot for visual verification
await page.screenshot({
path: 'test-results/screenshots/my-feature.png',
fullPage: true
});
// Add assertions
await expect(page.locator('.my-element')).toBeVisible();
});
Test Locations
- Config:
frontend/playwright.config.ts - Tests:
frontend/e2e/*.spec.ts - Results:
frontend/test-results/(gitignored)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?