test(e2e): relax over-corrected empty-canvas guard in delete spec (#2805) #2806
Reference in New Issue
Block a user
Delete Branch "fix/2798-context-menu-delete-false-green"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Closes #2805.
PR #2801 removed the false-green skip in
context-menu-delete.spec.ts, but it added a globalexpect(beforeWorkspaces).toHaveLength(0)guard that over-constrained the test: it failed on seeded or shared E2E platforms that already had workspaces, even though the test only interacts with its own seededE2E Delete Testnode.test.skip()paths).Test plan
npx eslint e2e/context-menu-delete.spec.tspasses.@playwright/testversion issue; CI will exercise the spec.Closes #2805
🤖 Generated with Claude Code
f638b5081bto01ed9edc7eAPPROVED on head
01ed9edc.5-axis review:
01ed9edc, including Canvas required context.No findings.
APPROVED on head
01ed9edc7e.I verified the diff is scoped to
canvas/e2e/context-menu-delete.spec.ts. Removing the global empty-canvas precondition fixes the over-corrected false-fail/false-skip shape from #2805 while preserving the fail-closed behavior that matters: the spec seeds its own target workspace, locates it by name, drives the real context-menu confirm flow, and verifies both canvas disappearance and API deletion. The cancel path remains targeted to its own seeded workspace.CI/all-required is green on the reviewed head.