e2e-analyzelisted
Install: claude install-skill parisgroup-ai/imersao-ia-setup
# e2e-analyze - Failure Analysis
Analyze E2E failures with rich context: timeline, code correlation, and history.
## Usage
```bash
/e2e-analyze # Analyze last run (from e2e-run-result.yaml)
/e2e-analyze <test> # Analyze specific test
```
## Analysis Steps
### Step 1: Load Last Run
```bash
cat apps/web/e2e-run-result.yaml
```
### Step 2: For Each Failure, Build Timeline
Read the error-context.md file and reconstruct:
```yaml
failure_timeline:
test: "creator-detail.spec.ts:29"
title: "should display creators list page"
steps:
- ts: "00:00.000"
action: "goto('/admin/creators')"
status: "ok"
- ts: "00:00.850"
action: "waitForLoadState('networkidle')"
status: "ok"
- ts: "00:01.200"
action: "locator('h1').filter({hasText: /criadores/})"
status: "timeout"
error: "Timeout 5000ms exceeded"
page_state:
url: "/admin/creators"
status_code: 404
screenshot: "test-results/.../test-failed-1.png"
```
### Step 3: Code Correlation
For each failure, find related code:
```yaml
code_correlation:
expected_route: "/admin/creators"
search_results:
- query: "glob: apps/web/src/app/**/admin/creators/**/page.tsx"
found: false
- query: "glob: apps/web/src/app/**/admin/**/creators/**/page.tsx"
found: true
path: "apps/web/src/app/(app)/admin/moderation/creators/page.tsx"
suggestion:
action: "test-update"
description: "Route /admin/creators doesn't exist. Us