test(e2e): make org-template import spec fail-closed (#2809) #2811

Closed
agent-dev-a wants to merge 1 commits from fix/2809-org-template-import-fail-closed into main
Member

What

Closes #2809.

canvas/e2e/org-template-import.spec.ts skipped both tests whenever /org/templates returned an empty list, silently removing the only browser-level coverage for the org-template import surface.

  • Added a suite-level beforeAll that fetches /org/templates and asserts at least one template exists, failing with a clear setup-error message instead of skipping.
  • Removed the per-test test.skip(orgs.length === 0) guards.
  • Shared the fetched org list between tests.

Component-level empty-state tests continue to cover the no-templates UI path; this E2E now requires a populated template registry (consistent with tests/e2e/test_dev_mode.sh).

Approach

Chose the fail-closed precondition route rather than filesystem seeding because /org/templates is a static directory scan and the E2E job is expected to run after the template registry is populated by the existing setup flow.

Test plan

  • npx eslint e2e/org-template-import.spec.ts passes.
  • Full Playwright run requires the E2E Chat job infra; the change will be exercised by CI.

Fixes #2809

🤖 Generated with Claude Code

## What Closes #2809. `canvas/e2e/org-template-import.spec.ts` skipped both tests whenever `/org/templates` returned an empty list, silently removing the only browser-level coverage for the org-template import surface. - Added a suite-level `beforeAll` that fetches `/org/templates` and asserts at least one template exists, failing with a clear setup-error message instead of skipping. - Removed the per-test `test.skip(orgs.length === 0)` guards. - Shared the fetched org list between tests. Component-level empty-state tests continue to cover the no-templates UI path; this E2E now requires a populated template registry (consistent with `tests/e2e/test_dev_mode.sh`). ## Approach Chose the fail-closed precondition route rather than filesystem seeding because `/org/templates` is a static directory scan and the E2E job is expected to run after the template registry is populated by the existing setup flow. ## Test plan - `npx eslint e2e/org-template-import.spec.ts` passes. - Full Playwright run requires the E2E Chat job infra; the change will be exercised by CI. Fixes #2809 🤖 Generated with [Claude Code](https://claude.com/claude-code)
agent-dev-a added 1 commit 2026-06-14 01:47:08 +00:00
test(e2e): make org-template import spec fail-closed (#2809)
CI / Python Lint & Test (pull_request) Successful in 5s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 9s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 10s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 4s
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 7s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 10s
sop-checklist / review-refire (pull_request_target) Has been skipped
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, local-postgres-e2
security-review / approved (pull_request_target) Failing after 7s
sop-checklist / na-declarations (pull_request) N/A: (none)
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
sop-checklist / all-items-acked (pull_request_target) Successful in 8s
gate-check-v3 / gate-check (pull_request_target) Failing after 12s
Harness Replays / Harness Replays (pull_request) Successful in 1s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 1s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 5s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 19s
E2E Chat / detect-changes (pull_request) Successful in 30s
reserved-path-review / reserved-path-review (pull_request_target) Successful in 19s
qa-review / approved (pull_request_target) Failing after 21s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 24s
CI / Detect changes (pull_request) Successful in 33s
E2E API Smoke Test / detect-changes (pull_request) Successful in 37s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 34s
E2E Chat / E2E Chat (pull_request) Successful in 4s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
CI / Platform (Go) (pull_request) Successful in 4s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 3s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 2s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 42s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 34s
audit-force-merge / audit (pull_request_target) Has been skipped
CI / Canvas (Next.js) (pull_request) Successful in 3m55s
CI / Canvas Deploy Status (pull_request) Successful in 0s
CI / all-required (pull_request) Successful in 3s
df0dbe9bf6
canvas/e2e/org-template-import.spec.ts skipped both tests whenever
/org/templates returned an empty list, silently removing the only
browser-level coverage for the org-template import surface.

- Add a suite-level beforeAll that fetches /org/templates and asserts at
  least one template exists, failing with a clear setup-error message
  instead of skipping.
- Remove the per-test test.skip(orgs.length === 0) guards.
- Share the fetched org list between tests.

Component-level empty-state tests continue to cover the no-templates UI
path; this E2E now requires a populated template registry.

Fixes #2809

Co-Authored-By: Claude <noreply@anthropic.com>
agent-dev-a closed this pull request 2026-06-14 01:49:39 +00:00
Some optional checks failed
CI / Python Lint & Test (pull_request) Successful in 5s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 9s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 10s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 4s
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 7s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 10s
sop-checklist / review-refire (pull_request_target) Has been skipped
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, local-postgres-e2
security-review / approved (pull_request_target) Failing after 7s
sop-checklist / na-declarations (pull_request) N/A: (none)
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
sop-checklist / all-items-acked (pull_request_target) Successful in 8s
gate-check-v3 / gate-check (pull_request_target) Failing after 12s
Harness Replays / Harness Replays (pull_request) Successful in 1s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 1s
Required
Details
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 5s
Required
Details
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 19s
E2E Chat / detect-changes (pull_request) Successful in 30s
reserved-path-review / reserved-path-review (pull_request_target) Successful in 19s
qa-review / approved (pull_request_target) Failing after 21s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 24s
CI / Detect changes (pull_request) Successful in 33s
E2E API Smoke Test / detect-changes (pull_request) Successful in 37s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 34s
E2E Chat / E2E Chat (pull_request) Successful in 4s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
CI / Platform (Go) (pull_request) Successful in 4s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 3s
Required
Details
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 2s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 42s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 34s
audit-force-merge / audit (pull_request_target) Has been skipped
CI / Canvas (Next.js) (pull_request) Successful in 3m55s
CI / Canvas Deploy Status (pull_request) Successful in 0s
CI / all-required (pull_request) Successful in 3s
Required
Details

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2811