test(e2e): make org-template import spec fail-closed (#2809) #2812
Reference in New Issue
Block a user
Delete Branch "fix/2809-org-template-fail-closed"
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 #2809. Recreates the validated fix from closed (unmerged) PR #2811 — that PR was closed unmerged at 2026-06-14T01:49:39Z while #2809 is still open and
mainstill has the broken behavior.canvas/e2e/org-template-import.spec.tsskipped both tests whenever/org/templatesreturned an empty list, silently removing the only browser-level coverage for the org-template import surface.beforeAllthat fetches/org/templatesand asserts at least one template exists, failing with a clear setup-error message instead of skipping.test.skip(orgs.length === 0)guards.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/templatesis 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— environment-level eslint config error is pre-existing (rushstack/eslint-patch mismatch in canvas/node_modules), not caused by this change. The file is well-formed TypeScript and was the same content as the previously-validated #2811.Fixes #2809
🤖 Generated with Claude Code
APPROVED on head
ea90aeff.Tests-only 5-axis review:
ea90aeff. Note: gate-check-v3 is currently red as a separate merge/ceremony gate, not a code/test failure from this diff.No code findings.