.agents/skills/tests-e2e/SKILL.md
Guides how to design, implement, and validate high-value end-to-end tests for Electron user flows with Playwright, covering renderer-main-preload integration through reusable Test Objects and production-like execution modes.
npx skillsauth add esplotter/esplotter tests-e2eInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run with: npm run test:e2e
Use packaged parity mode with: npm run test:e2e:compiled
This skill defines how to validate full Electron user flows across renderer, preload, and main integration boundaries. It standardizes where E2E specs and Test Objects live, what flow coverage is required, how to keep scenarios deterministic, and how to report outcomes so E2E reviews stay fast and objective.
Canonical policy source: docs/testing/tests.md.
Local layout/context source: docs/testing/tests.md.
tests-unit-main.tests-unit-main-infrastructure.tests-unit-preload.tests-unit-renderer.tests-components.e2e/support (Page Object pattern).role, label, and accessible names.data-testid only when no stable accessible selector exists.expect.poll, event promises, explicit visibility checks)should ...) whenever possible and remain user-intent focused.e2e/<feature-flow>.spec.tse2e/support/<Subject>TestObject.tsMainPage, Menu, Sidebar, Chart, Preferences, Clipboard, ElectronApp).e2e/support/setupE2eTestEnvironment.tsnpm run test:e2enpm run test:e2e:compilede2e/support.test:e2e, and test:e2e:compiled when applicable).e2e/support first when behavior is reusednpm run test:e2enpm run test:e2e:compiled when parity is requiredReturn a structured YAML report including:
status: ok | needs_clarification | errorsummary: what was tested/changed in one paragraphfiles_changed: list of changed pathstests_added_or_updated: list of e2e spec files added/updatedsupport_added_or_updated: list of e2e/support files added/updatedcommands_run: commands executed (test:e2e and test:e2e:compiled when applicable)result:
passed: booleanfailed_tests: listerror_excerpt: short excerpt when failingquestions: open questions with reason when clarification is needednext_actions: recommended follow-up actionswarnings: risks, assumptions, or deviationsdevops
Applies consistent renderer UI/UX implementation patterns using a Vercel-inspired white theme, strong accessibility defaults, and repository component conventions.
development
Use this first for any task that changes behavior or tests. This is a test strategy and routing skill, it selects the right test-suite skill(s), defines when to escalate coverage (for example e2e/compiled parity), and enforces regression rules.
tools
Guides how to design, implement, and validate high-value unit tests for renderer pure logic (stores, selectors, mappers, and utility flows) with strict no-DOM boundaries and deterministic contract assertions.
testing
Guides how to design, implement, and validate high-value unit tests for preload bridge contracts, renderer-facing exposures, and IPC delegation behavior with clear boundaries and deterministic collaborator doubles.