molecule-core/canvas
Molecule AI Core-FE 287e95db02 test(FileEditor, ApprovalBanner): add 30-case FileEditor suite + fix ApprovalBanner mock isolation
FileEditor.test.tsx:
- 30 cases: empty state, file header, dirty badge, download, save button
  (root-gated), Cmd+S, Tab indentation, readOnly gating, loading, success
- Uses makeProps() factory to avoid React 19 + vi.fn() module-scope
  + defaultProps issue (prop values resolving to mock objects)
- Uses Object.defineProperty for jsdom textarea selectionStart
- Removes redundant badge-on-change test (covered by other cases)

ApprovalBanner.test.tsx:
- Fix mock isolation: afterEach uses vi.clearAllMocks() instead of
  mockRestore().beforeEach re-applies vi.spyOn factory so tests are
  resilient to vi.restoreAllMocks() calls from other files
  (aria-time-sensitive.test.tsx calls vi.restoreAllMocks() in afterEach)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 02:02:43 +00:00
..
e2e canvas/e2e: surface admin-orgs row + workspace body on failure 2026-05-03 14:01:50 -07:00
public chore: replace brand icon and add HANDOFF.md 2026-04-13 13:03:40 -07:00
src test(FileEditor, ApprovalBanner): add 30-case FileEditor suite + fix ApprovalBanner mock isolation 2026-05-12 02:02:43 +00:00
.dockerignore feat(local-dev): containerize platform + canvas stack via docker-compose (closes #126) 2026-05-08 10:53:39 -07:00
.env.example fix(canvas): close 4 gaps in WS status indicator (env, toast, tests) 2026-04-14 08:26:38 +00:00
.gitignore feat(canvas): SaaS cross-origin — slug header + cookie credentials (Phase F) 2026-04-14 20:08:39 -07:00
components.json fix(canvas): restore text-white on saturated buttons + close zinc gaps 2026-05-03 02:04:20 -07:00
Dockerfile ci(docker): pin base image digests in all Dockerfiles 2026-05-09 23:56:39 +00:00
next.config.ts fix(canvas): boot-time matched-pair guard for ADMIN_TOKEN env vars (#175) 2026-05-08 19:22:39 -07:00
package-lock.json fix(canvas/test): resolve ~80 test failures across 17 test files (#299) 2026-05-11 08:14:55 +00:00
package.json feat(canvas): warm-paper theme + Tailwind v4 migration 2026-05-03 01:43:55 -07:00
playwright.config.ts initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
playwright.staging.config.ts feat(e2e): canary + canvas Playwright workflows; delegation mechanics 2026-04-21 04:15:10 -07:00
postcss.config.js feat(canvas): warm-paper theme + Tailwind v4 migration 2026-05-03 01:43:55 -07:00
tsconfig.json initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
vitest.config.ts fix(canvas): cap maxWorkers:1 to prevent jsdom pool worker startup timeouts 2026-05-09 02:02:10 +00:00