jmservera/aithena/playwright-e2e-aithena
Claude Code and agent skill by jmservera/aithena
- community
Checking that the SKILL.md file is still in the repository.
Playwright E2E test patterns for aithena: graceful skips, data-dependent discovery, sequential captures, screenshot specs
Install
npx vskill@latest install jmservera/aithena/playwright-e2e-aithenaSKILL.md
The same SKILL.md was published earlier as jmservera/aithena/playwright-e2e-aithena.
Context
Use when writing or reviewing Playwright tests in e2e/playwright/. The aithena E2E suite is read-only (discovers data from live API) and must be resilient in CI where indexed data may vary.
Pattern 1: Data-Dependent Discovery (No Fixtures)
Tests discover content from the live /v1/search/ API instead of uploading fixtures. This makes tests work against any populated Solr index.
Why: Avoids fixture maintenance; tests validate real search behavior.
Pattern 2: Graceful Skip with Annotations
Data-dependent pages (PDF viewer, similar books, status, stats, library) use try/catch + annotation:
Why: CI stays green even when data is unavailable; annotations explain why in reports.
Pattern 3: Sequential Page Capture (Dependency Chains)
Some pages depend on prior UI state. Capture them in order:
Rule: PDF viewer must be open before similar books panel can be captured.
Pattern 4: Wait Helpers for Async UI
Use waitForSearchResponse with parameter checks before assertions:
Why: Facet filter changes trigger async API calls; asserting before response arrives causes flaky tests.
Pattern 5: Screenshot Spec Coverage
The screenshot spec (tests/screenshots.spec.ts) captures 11 pages in a single test run:
- Login
- Search empty state (before any query)
- Search results
- Search faceted (filtered by author)
- PDF viewer
- Similar books
- Admin dashboard
- Upload
- Status
- Stats
- Library
Order matters: Empty state before queries; PDF before similar books; static pages last.
Configuration Notes
playwright.config.ts:baseURLtargets nginx (http://localhost)global-setup.ts: Polls both nginx and Vite dev server for health- No tsconfig.json — Playwright handles TS transpilation at runtime;
tsc --noEmitis not available for validation - Artifacts go to
e2e/artifacts/(gitignored), not repo root
Solr Health Wait (CI Integration)
Before running E2E tests in CI, wait for Solr cluster readiness:
Timeouts: retries=15, interval=10s, start_period=60s. Poll CLUSTERSTATUS API until all replicas ACTIVE.
Anti-Patterns
- Don't upload test fixtures — discover from live API; fixtures go stale
- Don't assert on empty Solr — always check
numFound > 0or skip - Don't capture dependent pages independently — follow dependency chains
- Don't hard-fail on missing data — use graceful skip + annotation
- Don't commit artifacts to repo root — use
e2e/artifacts/(gitignored)
References
e2e/playwright/tests/screenshots.spec.ts— 11-page screenshot spece2e/playwright/playwright.config.ts— base confige2e/playwright/global-setup.ts— health polling.squad/skills/smoke-testing/— full local smoke test cycle
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.squad/skills/playwright-e2e-aithena/SKILL.md
Popularity
- 7-day trend score
- 0
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
[](https://verified-skill.com/skills/jmservera/aithena/playwright-e2e-aithena)