bestdeejay-design/agent-skills / skills/frontend-testing
frontend-testing
VerifiedScaffold and advise on frontend testing for production readiness, mapped to the Front-End-Checklist Testing category (13 rules). Defines a testing pyramid (unit, integration, E2E, visual, a11y, cross-browser, real-device, perf-budget, mutation, error-monitoring, coverage, mocking, contract) and emits copy-pasteable configs: Playwright config + smoke specs, axe a11y (jest-axe / @axe-core/playwright), Pact contract tests, and a GitHub Actions perf-budget + coverage CI. Use when the user asks for 'frontend testing', 'test strategy', 'e2e', 'visual regression', 'playwright setup', 'playwright test', 'unit test', 'integration test', 'write tests', 'test generation', 'test coverage', 'regression test', 'perf budget CI', 'accessibility testing in CI', 'contract testing', 'mutation testing', 'настрой тесты фронта', or wants tests before a release. Scaffolds & advises only — does not run your full CI; you wire the configs in. Composes with frontend-perfection, frontend-a11y, frontend-performance, /frontend.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.9 KB |
| references/a11y-test.md | markdown | 1.8 KB |
| references/ci-perf-budget.yml | config | 2.9 KB |
| references/contract-test.md | markdown | 2.3 KB |
| references/e2e-smoke.spec.ts | script | 1.2 KB |
| references/playwright.config.ts | script | 1.1 KB |
| references/visual-regression.md | markdown | 2.0 KB |
| scripts/scaffold.py | script | 3.3 KB |
| skill.json | config | 2.2 KB |
references/e2e-smoke.spec.ts
View on GitHubimport { test, expect } from '@playwright/test';
/**
* Copy to e2e/smoke.spec.ts. Replace journeys with YOUR critical paths.
* E2E (rule 3): cover only the 3-7 journeys that are sev-1 if broken.
* Run: npx playwright test e2e/smoke.spec.ts --project=chromium
*/
test.describe('critical user journeys', () => {
test('homepage loads and primary CTA is reachable', async ({ page }) => {
await page.goto('/');
await expect(page).toHaveTitle(/.+/);
const cta = page.getByRole('link', { name: /get started/i });
await expect(cta).toBeVisible();
await cta.click();
await expect(page).toHaveURL(/\/signup|\/start/);
});
test('auth: login rejects bad credentials', async ({ page }) => {
await page.goto('/login');
await page.getByLabel(/email/i).fill('bad@example.com');
await page.getByLabel(/password/i).fill('wrong');
await page.getByRole('button', { name: /sign in/i }).click();
await expect(page.getByRole('alert')).toContainText(/invalid/i);
});
test('checkout: empty cart blocks payment', async ({ page }) => {
await page.goto('/cart');
await expect(page.getByText(/your cart is empty/i)).toBeVisible();
await expect(page.getByRole('button', { name: /pay/i })).toBeDisabled();
});
});
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |