MotirBuilding in public
MOTIR · moooon
onMotir
You’re viewing a public project. Anyone can view it — no account needed. Sign in to submit, upvote, or comment on requests.View-only — you can’t edit work items
MOTIR-797

2.8.6 [test] E2E + unit — cascade, permissions, MCP round-trip

Done
Description

Estimate: 40m · Type: test · Depends on: 2.8.3, 2.8.4, 2.8.5

Tests + verification. Vitest: cascade (parent delete removes all descendants + links), permission matrix, race outcomes. Playwright E2E: delete from detail → item+subtree gone + redirect; non-permitted user sees no action; archive-vs-delete both offered. MCP: delete_work_item round-trip (delete → get_work_item 404). Wait on AUTHORITATIVE signals (response status + post-reload reads), no waitForTimeout.

Acceptance criteria

  • All green; cascade + permission negatives covered; MCP round-trip asserted; no flaky syncs.

Context refs

  • existing work-item e2e + service tests; CLAUDE.md "E2E waits on the AUTHORITATIVE signal"