cleanup-e2e-tests

Diagnoses and fixes failing Cypress E2E tests including intercepts, selectors, and wait patterns.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/muselesscreator/ui-skills --skill cleanup-e2e-tests-muselesscreator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup-e2e-tests
Source: https://github.com/muselesscreator/ui-skills/tree/main/cleanup-e2e-tests
Command: npx skills add https://github.com/muselesscreator/ui-skills --skill cleanup-e2e-tests-muselesscreator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? E2E and Cypress tests often break after code changes due to selector mismatches, missing network intercepts, or race conditions, and manually triaging each failure is slow and error-prone. ## Core Features & Use Cases - Failure Triage: Runs the E2E suite or a specific spec, inspects Cypress screenshots, and classifies failures by error type such as element-not-found, timeout, or wrong URL. - Targeted Fixes: Repairs page objects, adds cy.intercept() calls, replaces cy.wait(N) with alias-based waits, and fixes test data or fixtures. - Use Case: After a UI refactor breaks your Cypress suite in CI, run this Skill to fetch CI logs, diagnose each failing spec, apply fixes in page objects, and produce a report separating fixed tests from issues needing human review. ## Quick Start Ask the assistant to clean up the failing E2E tests in your repo, optionally pointing it at a specific spec file or CI run URL.

Frequently Asked Questions about cleanup-e2e-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix failing Cypress E2E tests after a code change?

Run the failing spec headlessly, check Cypress screenshots first to see the actual UI state, then classify the error type. Common fixes include updating page object selectors, adding cy.intercept() before triggering actions, and replacing cy.wait(N) with alias-based waits.

How to debug Cypress tests that pass locally but fail in CI?

Check for hardcoded ports, environment-specific URLs, and timing differences between environments. Fetch CI logs with gh run view, compare screenshots from CI artifacts, and replace fixed waits with network synchronization to eliminate timing sensitivity.

Why does Cypress fail with element not found errors?

Element not found errors usually mean the test selector no longer matches the actual DOM after a UI change. Compare the selector in the test or page object against the rendered data-* attributes and update the page object rather than individual tests.

Should I use cy.wait with fixed timeouts in Cypress?

No, fixed cy.wait(N) calls cause flaky tests. Instead wait on a cy.intercept() alias like cy.wait('@alias') or assert on a concrete UI condition, so the test proceeds exactly when the application is ready.

When should E2E test failures be escalated instead of auto-fixed?

Escalate when a failure reveals an architectural issue, such as a genuine application bug, ambiguous product behavior, or a data contract mismatch that mocks cannot resolve. These cases need human decisions rather than test-level patches.