Agent skill

e2e-testing

Playwright end-to-end testing for ScreenGraph using .env-driven configuration. Use when validating full user flows, running regression suites, or inspecting UI behavior with Cursor browser tools.

Stars 1
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/nirukk52/ScreenGraph/tree/main/.claude-skills/e2e-testing_skill

SKILL.md

ScreenGraph E2E Testing Skill

Mission

Provide consistent, deterministic coverage of the ScreenGraph UI by coupling Playwright automation with the shared .env configuration. This skill summarizes the workflow and defers deep scripts, policies, and RCA playbooks to references/.

When to Use

  • Validating the run flow from landing page ➜ run timeline ➜ screenshot gallery
  • Reproducing UI regressions before releasing backend/front-end changes
  • Maintaining smoke tests enforced by the pre-push hook
  • Capturing artifacts (screenshots, console logs) for tickets and handoffs

Automation Loop

  1. Prepare environment – Ensure backend, frontend, Appium/device, and .env values are ready (see references/automated-tests.md).
  2. Execute Playwright suites – Run headed/headless/CI modes using the prescribed commands. Respect the 60s timeout budget.
  3. Investigate failures – Use helpers in lib/playwright-helpers.ts, console/network logs, and backend logs to locate the root cause.
  4. Escalate diagnostics – Fall back to Cursor Browser tools (references/browser-tools.md) or the regression playbook for complex incidents.
  5. Document – Attach screenshots, logs, and RCA notes in Graphiti or the relevant ticket.

Quick Command Set

bash
# Headed for visual debugging
bun run test:e2e:headed

# Headless CI-parity run
bun run test:e2e:ci

# Playwright UI mode
bun run test:e2e:ui

Quality Gates

  • .env values (package name, Appium URL, APK path) sourced before running tests
  • Total Playwright test time per spec ≤ 60 seconds (budget defined in references)
  • Failures include screenshot + console output attachments
  • Regressions traced back to backend/frontend root cause with notes in Graphiti
  • Run-flow assertions confirm both timeline events and visible screenshot gallery output

Reference Library

  • references/automated-tests.md – Quick start commands, configuration, timeout policy, and pre-push integration
  • references/manual-workflow.md – Running ad-hoc Playwright scripts from scratch directories and capturing artifacts
  • references/browser-tools.md – Automating interactive debugging with Cursor’s @Browser tool
  • references/regression-playbook.md – BUG-010 case study and systematic RCA steps
  • references/troubleshooting.md – Fast-fail signals, Appium/device checks, cleanup routines

Related Skills

  • frontend-development_skill – Source of truth for Svelte/Skeleton patterns the tests exercise
  • backend-development_skill – Ensures backend flows are stable before they enter E2E coverage
  • frontend-debugging_skill – Use after tests fail to diagnose rune or SSR issues in the UI

Expand your agent's capabilities with these related and highly-rated skills.

nirukk52/ScreenGraph

before-task

Comprehensive discovery before starting any spec or major task. Searches Graphiti, recommends vibe/MCPs, surfaces patterns.

1 0
Explore
nirukk52/ScreenGraph

slack-gif-creator

Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".

1 0
Explore
nirukk52/ScreenGraph

skill-creator

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

1 0
Explore
nirukk52/ScreenGraph

after-task

Mandatory knowledge capture after completing work. Documents solution in Graphiti and tracks effectiveness for system improvement.

1 0
Explore
nirukk52/ScreenGraph

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

1 0
Explore
nirukk52/ScreenGraph

internal-comms

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

1 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results