بنقرة واحدة
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 المهني
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
| 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."