molecule-core/canvas
Molecule AI Core-FE daecab6d6d
Some checks failed
Harness Replays / Harness Replays (pull_request) Has been skipped
audit-force-merge / audit (pull_request) Has been skipped
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 16s
Harness Replays / detect-changes (pull_request) Failing after 15s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 15s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 18s
sop-tier-check / tier-check (pull_request) Successful in 17s
CI / Detect changes (pull_request) Successful in 1m4s
E2E API Smoke Test / detect-changes (pull_request) Successful in 1m6s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 1m10s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 1m0s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 55s
CI / Platform (Go) (pull_request) Successful in 12s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 21s
CI / Python Lint & Test (pull_request) Successful in 15s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 9s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 11s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 9s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Failing after 10m40s
CI / Canvas (Next.js) (pull_request) Failing after 11m51s
fix(canvas/test): fix ApprovalBanner POST error test isolation
The "keeps the card visible when the POST fails" test was failing in the
full suite due to cross-test mock pollution from ActivityTab.test.tsx.

Root cause: ActivityTab.test.tsx mocks @/lib/api with vi.fn() mocks
(mockGet, mockPost) that persist across test files. When ApprovalBanner's
decisions beforeEach creates a vi.spyOn on api.post, it wraps ActivityTab's
mockPost. Calling mockRejectedValueOnce() on the spy queues after
ActivityTab's mockResolvedValue({}) implementation, but in certain test
orderings the queue ordering was unreliable.

Fix: use mockPost.mockReset().mockImplementation(() =>
Promise.reject(...)) to atomically clear the beforeEach mock setup and
set a permanent rejection, rather than relying on mockRejectedValueOnce
which queues behind the existing implementation.

Also: store mockGet and mockPost in module-level variables so error
tests can manipulate them without creating duplicate spies.

Co-Authored-By: Molecule AI Core-FE <core-fe@agents.moleculesai.app>
2026-05-11 10:50:16 +00:00
..
e2e canvas/e2e: surface admin-orgs row + workspace body on failure 2026-05-03 14:01:50 -07:00
public
src fix(canvas/test): fix ApprovalBanner POST error test isolation 2026-05-11 10:50:16 +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
.gitignore
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
playwright.staging.config.ts
postcss.config.js feat(canvas): warm-paper theme + Tailwind v4 migration 2026-05-03 01:43:55 -07:00
tsconfig.json
vitest.config.ts fix(canvas): cap maxWorkers:1 to prevent jsdom pool worker startup timeouts 2026-05-09 02:02:10 +00:00