jyjeanne/ai-setup-forge/e2e-testing-playwright

Claude Code and agent skill by jyjeanne/ai-setup-forge

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

To simulate real user scenarios from start to finish, ensuring that the integrated system (Frontend + Backend + Database) works as expected. Use when: Testing critical flows: Login, Checkout, Registration; Ensuring no regressions in core business logic.

Install

npx vskill@latest install jyjeanne/ai-setup-forge/e2e-testing-playwright

SKILL.md

The same SKILL.md was published earlier as jyjeanne/ai-setup-forge/e2e-testing-playwright.

Purpose

To simulate real user scenarios from start to finish, ensuring that the integrated system (Frontend + Backend + Database) works as expected.

When to Use

  • Testing critical flows: Login, Checkout, Registration.
  • Ensuring no regressions in core business logic.

Procedure

1. Installation

Initialize Playwright in your project.

bash
npm init playwright@latest
# Choose TypeScript, add GitHub Actions workflow, etc.
2. Writing a Test Case

Create a spec file in the tests/ directory.

typescript
import { test, expect } from '@playwright/test';
test('user can login and see dashboard', async ({ page }) => {
// 1. Arrange
await page.goto('/login');
// 2. Act
await page.getByLabel('Email').fill('test@example.com');
await page.getByLabel('Password').fill('password123');
await page.getByRole('button', { name: 'Log in' }).click();
// 3. Assert
await expect(page).toHaveURL('/dashboard');
await expect(page.getByRole('heading', { name: 'Welcome back' })).toBeVisible();
});
3. Page Object Model (POM)

Organize code into reusable Page Objects for better maintainability.

typescript
// models/LoginPage.ts
export class LoginPage {
constructor(private page: Page) {}
async goto() { await this.page.goto('/login'); }
async login(email, pass) {
await this.page.fill('#email', email);
await this.page.fill('#pass', pass);
await this.page.click('#submit');
}
}
4. Running Tests

Execute tests in different modes.

bash
# Run all tests (headless)
npx playwright test
# Run with UI (best for debugging)
npx playwright test --ui
# Run specific file
npx playwright test login.spec.ts

Constraints

  • Test Independence: Each test should be able to run in isolation. Use test.beforeEach to reset state.
  • Avoid Fragile Selectors: Use getByRole, getByLabel, or data-testid instead of classes like .btn-primary.
  • Wait Strategically: Use Playwright's auto-waiting features; avoid page.waitForTimeout(3000).

Expected Output

A set of robust E2E tests that reliably verify critical user journeys across different browsers.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jyjeanne/ai-setup-forge/e2e-testing-playwright/badge)](https://verified-skill.com/skills/jyjeanne/ai-setup-forge/e2e-testing-playwright)

Something wrong with this skill or its page? Tell us.