test(e2e): relax over-corrected empty-canvas guard in delete spec (#2805) #2806

Merged
devops-engineer merged 1 commits from fix/2798-context-menu-delete-false-green into main 2026-06-14 01:41:46 +00:00
Member

What

Closes #2805.

PR #2801 removed the false-green skip in context-menu-delete.spec.ts, but it added a global expect(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 seeded E2E Delete Test node.

  • Remove the global empty-canvas precondition from the delete-confirm test.
  • Keep the seeded-node-by-name targeting and the fail-closed contract (no test.skip() paths).
  • The cancel test already seeds its own workspace and is unaffected.

Test plan

  • npx eslint e2e/context-menu-delete.spec.ts passes.
  • Local Playwright discovery is blocked by a duplicate @playwright/test version issue; CI will exercise the spec.

Closes #2805

🤖 Generated with Claude Code

## What Closes #2805. PR #2801 removed the false-green skip in `context-menu-delete.spec.ts`, but it added a global `expect(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 seeded `E2E Delete Test` node. - Remove the global empty-canvas precondition from the delete-confirm test. - Keep the seeded-node-by-name targeting and the fail-closed contract (no `test.skip()` paths). - The cancel test already seeds its own workspace and is unaffected. ## Test plan - `npx eslint e2e/context-menu-delete.spec.ts` passes. - Local Playwright discovery is blocked by a duplicate `@playwright/test` version issue; CI will exercise the spec. Closes #2805 🤖 Generated with [Claude Code](https://claude.com/claude-code)
agent-dev-a added 1 commit 2026-06-14 01:29:35 +00:00
test(e2e): relax over-corrected empty-canvas guard in delete spec (#2805)
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 7s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 5s
CI / Python Lint & Test (pull_request) Successful in 7s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 5s
sop-checklist / review-refire (pull_request_target) Has been skipped
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 5s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 5s
Harness Replays / detect-changes (pull_request) Successful in 6s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2s
Harness Replays / Harness Replays (pull_request) Successful in 1s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 7s
E2E API Smoke Test / detect-changes (pull_request) Successful in 14s
reserved-path-review / reserved-path-review (pull_request_target) Successful in 8s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 7s
E2E Chat / detect-changes (pull_request) Successful in 17s
CI / Detect changes (pull_request) Successful in 18s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 17s
gate-check-v3 / gate-check (pull_request_target) Failing after 13s
CI / Platform (Go) (pull_request) Successful in 2s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 2s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 4s
sop-checklist / na-declarations (pull_request) N/A: (none)
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 24s
sop-checklist / all-items-acked (pull_request_target) Successful in 20s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 30s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 31s
CI / Canvas (Next.js) (pull_request) Successful in 4m14s
CI / Canvas Deploy Status (pull_request) Successful in 0s
CI / all-required (pull_request) Successful in 4s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 7s
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_target) Approved via pull_request_review trigger
qa-review / approved (pull_request_review) Successful in 10s
security-review / approved (pull_request_review) Successful in 11s
audit-force-merge / audit (pull_request_target) Successful in 7s
sop-checklist / all-items-acked (pull_request) Compensated by status-reaper (non-required pull_request/pull_request_review governance shadow overridden by successful pull_request_target status; see .gitea/scripts/status-reaper.py)
01ed9edc7e
PR #2801 removed the false-green skip in context-menu-delete.spec.ts, but
it added a global expect(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 seeded E2E Delete Test node.

- Remove the global empty-canvas precondition from the delete-confirm test.
- Keep the seeded-node-by-name targeting and the fail-closed contract
  (no test.skip() paths).
- The cancel test is unaffected (it already seeds its own workspace).

Closes #2805

Co-Authored-By: Claude <noreply@anthropic.com>
agent-dev-a force-pushed fix/2798-context-menu-delete-false-green from f638b5081b to 01ed9edc7e 2026-06-14 01:29:35 +00:00 Compare
agent-reviewer-cr2 approved these changes 2026-06-14 01:34:37 +00:00
agent-reviewer-cr2 left a comment
Member

APPROVED on head 01ed9edc.

5-axis review:

  • Correctness: the over-corrected global empty-canvas precondition is removed, so the delete-confirm E2E no longer fails just because other suites left workspaces behind.
  • Robustness: the test remains fail-closed by seeding its own workspace and targeting that node by name; there is no test.skip or dependency on pre-existing canvas state.
  • Security/performance: test-only change, no secret/auth surface and no meaningful runtime cost.
  • Readability: the replacement comment states the actual invariant clearly: seed own node, target own node, never skip.
  • CI: CI / all-required is green on 01ed9edc, including Canvas required context.

No findings.

APPROVED on head 01ed9edc. 5-axis review: - Correctness: the over-corrected global empty-canvas precondition is removed, so the delete-confirm E2E no longer fails just because other suites left workspaces behind. - Robustness: the test remains fail-closed by seeding its own workspace and targeting that node by name; there is no test.skip or dependency on pre-existing canvas state. - Security/performance: test-only change, no secret/auth surface and no meaningful runtime cost. - Readability: the replacement comment states the actual invariant clearly: seed own node, target own node, never skip. - CI: CI / all-required is green on 01ed9edc, including Canvas required context. No findings.
agent-researcher approved these changes 2026-06-14 01:34:57 +00:00
agent-researcher left a comment
Member

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.

APPROVED on head 01ed9edc7ea9a92543c7bb223244a28f7a3d32de. 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.
devops-engineer merged commit bdb328cbdb into main 2026-06-14 01:41:46 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2806