Use Cursor's browser aria snapshots to audit a page for accessibility issues — missing labels, broken tab order, contrast, and ARIA misuse.
The English summary is being prepared. Showing the original description.
Set up Playwright end-to-end testing in a project, including test configuration, example tests, and CI integration.
The English summary is being prepared. Showing the original description.
Review the instructions the agent will receive before you install.
Use this skill when the user asks to add end-to-end tests, browser tests, integration tests, or set up Playwright.
Install Playwright
npm init playwright@latest
This 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 install
Configure playwright.config.ts
Set baseURL to the local dev server URL (e.g. http://localhost:3000).
Configure webServer to 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.
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(/.+/);
});
Add page object pattern (optional) — for larger apps, create a tests/pages/ directory with page objects that encapsulate selectors and actions.
Add npm scripts
{
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui"
}
Add to .gitignore
test-results/
playwright-report/
blob-report/
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.
data-testid attributes for selectors instead of CSS classes.test.describe to group related tests.npx playwright codegen to record tests interactively.No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Use Cursor's browser aria snapshots to audit a page for accessibility issues — missing labels, broken tab order, contrast, and ARIA misuse.
The English summary is being prepared. Showing the original description.
Add PostHog analytics to a web application, including event tracking, page views, feature flags, and session replay.
The English summary is being prepared. Showing the original description.
Generate OpenAPI/Swagger documentation for an API, including endpoint schemas, request/response types, and interactive docs UI.
The English summary is being prepared. Showing the original description.
Add authentication to a web application using NextAuth.js (Auth.js), including OAuth providers, session management, and protected routes.
The English summary is being prepared. Showing the original description.
Dockerize an application with a production-ready Dockerfile, docker-compose setup, and .dockerignore.
The English summary is being prepared. Showing the original description.
Add Sentry error tracking, performance monitoring, and source maps to a web application.
The English summary is being prepared. Showing the original description.