
Adding E2e Tests
- 225 installs
- 655 repo stars
- Updated August 2, 2026
- spencerpauly/awesome-cursor-skills
Helps with testing & qa tasks.
About
adding-e2e-tests is a Claude Code skill for testing & qa. It helps solo builders move faster with AI-assisted coding.
- adding-e2e-tests
- Testing & QA
- AI-coding skill
Adding E2e Tests by the numbers
- 225 all-time installs (skills.sh)
- +32 installs in the week ending Jul 27, 2026 (Skillselion tracking)
- Ranked #775 of 2,153 Testing & QA skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/spencerpauly/awesome-cursor-skills --skill adding-e2e-testsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 225 |
|---|---|
| repo stars | ★ 655 |
| Last updated | August 2, 2026 |
| Repository | spencerpauly/awesome-cursor-skills ↗ |
What it does
Helps with testing & qa tasks.
Files
Add E2E Tests (Playwright)
Use this skill when the user asks to add end-to-end tests, browser tests, integration tests, or set up Playwright.
Steps
1. Install Playwright
npm init playwright@latestThis creates playwright.config.ts, a tests/ directory, and installs browsers. If the project already has a test runner, install manually:
npm install -D @playwright/test
npx playwright install2. Configure `playwright.config.ts`
- Set
baseURLto the local dev server URL (e.g.http://localhost:3000). - Configure
webServerto start the dev server automatically:
webServer: {
command: "npm run dev",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
},- Enable only chromium for local dev speed; enable all browsers in CI.
3. Create a smoke test — write a basic test that verifies the app loads:
import { test, expect } from "@playwright/test";
test("homepage loads", async ({ page }) => {
await page.goto("/");
await expect(page).toHaveTitle(/.+/);
});4. Add page object pattern (optional) — for larger apps, create a tests/pages/ directory with page objects that encapsulate selectors and actions.
5. Add npm scripts
{
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui"
}6. Add to `.gitignore`
test-results/
playwright-report/
blob-report/7. CI integration — add a GitHub Actions step that runs npx playwright install --with-deps then npm run test:e2e. Use the official actions/upload-artifact to save the HTML report on failure.
Notes
- Use
data-testidattributes for selectors instead of CSS classes. - Use
test.describeto group related tests. - Run
npx playwright codegento record tests interactively.