From 92e94d4ddde791727bf1b03608440779d9809ce8 Mon Sep 17 00:00:00 2001 From: Marcel Ebert Date: Mon, 5 Oct 2026 11:57:48 +0200 Subject: [PATCH] test(frontend): give e2e mock ramps an expiresAt for the sell deadline guard The SELL start-deadline guard from #1393 fails closed when the ramp has no expiresAt, so every mocked SELL journey ended on the "sale expired" error. Mirror the API's createdAt + 15 min window. --- apps/frontend/e2e/support/mockBackend.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/frontend/e2e/support/mockBackend.ts b/apps/frontend/e2e/support/mockBackend.ts index b7693383b..337d7e878 100644 --- a/apps/frontend/e2e/support/mockBackend.ts +++ b/apps/frontend/e2e/support/mockBackend.ts @@ -68,6 +68,9 @@ export function buildRampProcess(overrides: Record = {}) { createdAt: new Date().toISOString(), currentPhase: "initial", depositQrCode: E2E_DEPOSIT_QR_CODE, + // The API sets createdAt + RAMP_START_EXPIRATION_TIME_SECONDS (15 min); the SELL start-deadline + // guard in sign.actor.ts fails closed without it. + expiresAt: new Date(Date.now() + 15 * 60 * 1000).toISOString(), from: "pix", id: E2E_RAMP_ID, inputAmount: "100",