원클릭으로
e2e-assertion-audit
Scan E2E tests for no-op assertions and overly permissive checks that provide false confidence
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Scan E2E tests for no-op assertions and overly permissive checks that provide false confidence
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | e2e-assertion-audit |
| description | Scan E2E tests for no-op assertions and overly permissive checks that provide false confidence |
| user-invocable | true |
| disable-model-invocation | true |
Review E2E tests for assertions that pass without actually validating behavior.
expect(true).toBe(true)assert 1 == 1expect(page).toBeDefined() (always true)expect(text).toContain("a") (matches almost anything)expect(response.status).toBeLessThan(500) (accepts 404 as success)expect(data).toBeTruthy() (accepts {}, [], true)expect(error).toBeDefined() (catches both success and error envelopes)page.click("button") (clicks first button, not the intended one)page.fill("input", ...) (fills first input)expect(page.locator("text=Submit")).toBeVisible() (may match multiple)## E2E Assertion Audit
### No-Op Assertions
- `tests/e2e/checkout.test.ts:45` — `expect(true).toBe(true)` after clicking pay. Assert on receipt page URL or confirmation text instead.
### Overly Permissive
- `tests/e2e/login.test.ts:32` — `expect(response.status).toBeLessThan(500)` accepts 401 as "success". Assert exact status: `expect(response.status).toBe(200)`.
### Missing Negative Cases
- `tests/e2e/admin.test.ts` — No test that non-admin user is redirected. Add: `await page.goto('/admin'); expect(page.url()).not.toContain('/admin')`.
### Fragile Selectors
- `tests/e2e/signup.test.ts:12` — `page.click('button')` clicks wrong button. Use: `page.click('button[type="submit"]')` or `data-testid`.
tests/e2e/**).tests/e2e/search.test.ts has specific selectors and negative cases."Scan a project, interview the user about unknowns, and generate a complete AI harness (Copilot + Claude + Opencode) with Constitutional Articles I–IX
Scan a project, interview the user about unknowns, and generate a complete AI harness (Copilot + Claude + Opencode) with Constitutional Articles I–IX
Scaffold a {{DB_PROVIDER}} SQL migration compliant with sql-standards.md
Generate a contract test skeleton for a backend or frontend service following TDD Article III
Triage hardcoded dates, AsyncMock misuse, cross-tier truncates, and envelope assertion bugs in the test suite
Scan a project, interview the user about unknowns, and generate a complete AI harness (Copilot + Claude + Opencode) with Constitutional Articles I–IX