/everything-copilot-cli:e2e-testingfrom everything-copilot-cli
Scaffolds Playwright/Cypress end-to-end tests for critical user flows, covering happy paths through edge cases. Use after refactors or before releases.
Ships in everything-copilot-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Map the workflows that must always work:
# Copilot glob tool — find existing E2E tests to understand what's covered
glob pattern="**/*.e2e.*"
glob pattern="**/e2e/**/*.{ts,js}"
glob pattern="**/cypress/**/*.{ts,js}"
glob pattern="**/playwright/**/*.{ts,js}"
Prioritize paths by business impact:
| Priority | Path | Example |
|---|---|---|
| 🔴 P0 | Revenue-critical | Signup → Purchase → Confirmation |
| 🔴 P0 | Authentication | Login → Access protected resource |
| 🟡 P1 | Core features | Create item → Edit → Delete |
| 🟡 P1 | Data integrity | Import → Transform → Export |
| 🟢 P2 | Secondary flows | Settings → Profile update |
# Start the application in test mode
$env:NODE_ENV="test"
npm run dev # mode: async, detach: true
# Seed test data
npm run db:seed:test 2>&1
# Verify the app is running
curl -s http://localhost:3000/health
Playwright example:
// e2e/auth.spec.ts
import { test, expect } from '@playwright/test';
test.describe('Authentication Flow', () => {
test('user can sign up and log in', async ({ page }) => {
// Navigate to signup
await page.goto('/signup');
// Fill the form
await page.fill('[name="email"]', '[email protected]');
await page.fill('[name="password"]', 'SecurePass123!');
await page.click('button[type="submit"]');
// Verify redirect to dashboard
await expect(page).toHaveURL('/dashboard');
await expect(page.locator('h1')).toContainText('Welcome');
});
test('shows error for invalid credentials', async ({ page }) => {
await page.goto('/login');
await page.fill('[name="email"]', '[email protected]');
await page.fill('[name="password"]', 'wrong');
await page.click('button[type="submit"]');
await expect(page.locator('.error')).toContainText('Invalid credentials');
await expect(page).toHaveURL('/login');
});
});
API E2E example:
// e2e/api-workflow.spec.ts
import { test, expect } from '@playwright/test';
test.describe('API CRUD Workflow', () => {
let itemId: string;
test('create → read → update → delete', async ({ request }) => {
// Create
const createRes = await request.post('/api/items', {
data: { name: 'Test Item', price: 29.99 },
});
expect(createRes.status()).toBe(201);
const created = await createRes.json();
itemId = created.id;
// Read
const getRes = await request.get(`/api/items/${itemId}`);
expect(getRes.status()).toBe(200);
expect((await getRes.json()).name).toBe('Test Item');
// Update
const updateRes = await request.put(`/api/items/${itemId}`, {
data: { name: 'Updated Item' },
});
expect(updateRes.status()).toBe(200);
// Delete
const deleteRes = await request.delete(`/api/items/${itemId}`);
expect(deleteRes.status()).toBe(204);
// Verify deleted
const verifyRes = await request.get(`/api/items/${itemId}`);
expect(verifyRes.status()).toBe(404);
});
});
# Playwright
npx playwright test 2>&1
# Cypress
npx cypress run 2>&1
# With specific test file
npx playwright test e2e/auth.spec.ts 2>&1
# Use task agent for clean output
task agent_type: "task"
prompt: "Run 'npx playwright test' and report results. Show full output for any failures."
# Run with headed browser for visual debugging
npx playwright test --headed --debug e2e/auth.spec.ts
# View trace for failed test
npx playwright show-trace test-results/auth-trace.zip
# Screenshot on failure (auto-configured in playwright.config.ts)
# Find flaky tests (tests that sometimes pass, sometimes fail)
# Run tests multiple times to detect flakiness
npx playwright test --repeat-each=3 2>&1 | Select-String "passed|failed|flaky"
# Find slow tests
npx playwright test --reporter=list 2>&1 | Sort-Object { [int]($_ -split '\s+')[-1] } -Descending | Select-Object -First 10
npm init playwright@latest 2>&1
# Generates: playwright.config.ts, e2e/ directory, package.json scripts
# .github/workflows/e2e.yml
- name: Run E2E tests
run: |
npm run build
npm start &
npx wait-on http://localhost:3000
npx playwright test
test.beforeAll to seed data and test.afterAll to clean updata-testid) over fragile XPath or text selectorswaitForSelector) instead of arbitrary delaystask agent to run E2E suites — it keeps your context clean and summarizes resultsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub drvoss/everything-copilot-cli --plugin everything-copilot-cli115 skills in this plugin
/actions-debuggingUse when a GitHub Actions workflow fails — diagnose the run log, identify the root cause, and apply a targeted fix/add-to-changelogUse when you've shipped a feature, fix, or breaking change and need to update CHANGELOG.md — follows Keep a Changelog format and syncs version numbers across package manifests./agent-governanceUse when designing or reviewing an AI agent system that needs policy-based access controls, intent classification, tool-level rate limiting, trust scoring for multi-agent workflows, or append-only audit trails.
Other plugins' skills for the same job