Toolverse
All skills

e2e-test-builder

by svelte-society

Create Playwright E2E tests using Page Object Model pattern with database isolation

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Testing
Views
1

About this skill

Create Playwright E2E tests using Page Object Model pattern with database isolation

How to use

  1. Zainstaluj umiejętność w swoim projekcie Svelte, kopiując katalog .claude/skills/e2e-test-builder z repozytorium svelte-society do swojego projektu.

  2. W nowym pliku testowym zaimportuj wymagane moduły: test i expect z @playwright/test, odpowiednie klasy Page Object z tests/pages/, funkcję setupDatabaseIsolation z tests/helpers/database-isolation oraz loginAs z tests/helpers/auth.

  3. W bloku test.beforeEach wywołaj setupDatabaseIsolation(page) — automatycznie wykryje nazwę pliku testowego i przygotuje izolowaną kopię bazy danych. Jeśli test wymaga uwierzytelnienia, dodaj await loginAs(page, 'admin') lub inną rolę użytkownika.

  4. W każdym teście utwórz instancję Page Object (np. new HomePage(page)), przejdź do strony za pomocą goto() i wykonaj interakcje poprzez metody POM-u zamiast bezpośrednio manipulować elementami DOM.

  5. Uruchom wszystkie testy poleceniem bun run test:integration lub użyj bun run test:integration:ui dla interaktywnego trybu interfejsu graficznego, który pozwala na debugowanie i obserwację testów w czasie rzeczywistym.

  6. Zapoznaj się z plikami referencyjnymi: PAGE-OBJECTS.md opisuje tworzenie klas Page Object Model, TEST-PATTERNS.md wyjaśnia strukturę testów i asercje, a TEMPLATES.md zawiera gotowe szablony do skopiowania.

Related skills

playwright

by BloomBooks

How to make good playwright (e2e) tests for this project.

Testing
1298

differential-review

by trailofbits

Performs security-focused differential review of code changes (PRs, commits, diffs). Adapts analysis depth to codebase size, uses git history for context, calculates blast radius, checks test coverage, and generates comprehensive markdown reports. Automatically detects and

Testing
2510

python-testing-patterns

by wshobson

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

Testing
46146

wcag-audit-patterns

by wshobson

Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.

Testing
1893

crypto-research

by stevengonsalvez

Comprehensive cryptocurrency market research and analysis using specialized AI agents. Analyzes market data, price trends, news sentiment, technical indicators, macro correlations, and investment opportunities. Use when researching cryptocurrencies, analyzing crypto markets,

Testing
14118

lean4-theorem-proving

by cameronfreer

Use when developing Lean 4 proofs, facing type class synthesis errors, managing sorries/axioms, or searching mathlib - provides build-first workflow, instance management patterns (haveI/letI), and domain-specific tactics

Testing
9108