Skip to content

Give e2e mock ramps an expiry so SELL journeys pass the start-deadline guard - #1399

Merged
ebma merged 1 commit into
stagingfrom
fix/e2e-mock-ramp-expires-at
Oct 5, 2026
Merged

ebma merged 1 commit into
stagingfrom
fix/e2e-mock-ramp-expires-at

Conversation

@ebma

@ebma ebma commented Oct 5, 2026

Copy link
Copy Markdown
Member

Why

All 5 SELL e2e journeys (BRL, USD, MXN, COP, ARS) fail on staging (591d11f). The e2e mock buildRampProcess in apps/frontend/e2e/support/mockBackend.ts returned a ramp with no expiresAt. The SELL start-deadline guard added in #1393 (sign.actor.ts) fails closed when expiresAt is missing, so every mocked SELL journey ended on "This sale expired before your funds were sent." instead of the success screen.

Change

The mock ramp now gets expiresAt = now + 15 min, the same window the API sets (createdAt + RAMP_START_EXPIRATION_TIME_SECONDS, apps/api/src/constants/constants.ts). The guard itself is unchanged; failing closed is intended.

Verification

bun test:e2e in apps/frontend:

  • before: 10 passed, 5 failed (all 5 SELL journeys; every error snapshot shows the "sale expired" message)
  • after: 15 passed

…e 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.
@netlify

netlify Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vrtx-dashboard canceled.

Name Link
🔨 Latest commit 92e94d4
🔍 Latest deploy log https://app.netlify.com/projects/vrtx-dashboard/deploys/6ac374a834351e000799de64

@netlify

netlify Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 92e94d4
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6ac374a8dc87a900086c11a5
😎 Deploy Preview https://deploy-preview-1399--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 92e94d4
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6ac374a92e8371000887b10e
😎 Deploy Preview https://deploy-preview-1399--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ebma
ebma merged commit 3b2f129 into staging Oct 5, 2026
6 checks passed
@ebma
ebma deleted the fix/e2e-mock-ramp-expires-at branch October 5, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant