fix: harden canvas review and runtime bootstrap (#3628)

This commit is contained in:
Carlos Florêncio
2026-09-13 16:59:18 +01:00
committed by GitHub
parent 34a21812ca
commit 96b2814bfb
6 changed files with 542 additions and 44 deletions
@@ -517,6 +517,15 @@ describe("CanvasReleaseDialog review surface", () => {
expect(screen.getByRole("button", { name: COPY.rollbackRelease })).toBeTruthy();
});
it("uses the wide responsive desktop review surface", async () => {
mockListCanvasReleases.mockResolvedValue({ releases: [release()] });
render(<CanvasReleaseDialog canvas={canvas} open onOpenChange={vi.fn()} />);
await screen.findByTestId("canvas-release-review-release-pending");
expect(screen.getByTestId("canvas-releases-dialog").className).toContain("sm:max-w-[48rem]");
});
it("keeps the phone review full-height with a fixed safe-area footer", async () => {
responsive.isMobile = true;
mockListCanvasReleases.mockResolvedValue({ releases: [release()] });