Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(pruef): the gate test checks the LU origin instead of naming the payment provider

purple8fe7a6a6d706
diff --git a/src/components/cloud/__tests__/the-gate-sells-pack-and-plan-and-counts.test.tsx b/src/components/cloud/__tests__/the-gate-sells-pack-and-plan-and-counts.test.tsx
index 32d59e00..9984085b 100644
--- a/src/components/cloud/__tests__/the-gate-sells-pack-and-plan-and-counts.test.tsx
+++ b/src/components/cloud/__tests__/the-gate-sells-pack-and-plan-and-counts.test.tsx
@@ -26,6 +26,7 @@ const { useUIStore } = await import('../../../stores/uiStore')
const { useCloudGateStore } = await import('../../../stores/cloudGateStore')
const { useSettingsStore } = await import('../../../stores/settingsStore')
const { parseGateCatalog } = await import('../../../lib/cloud-gate')
+const { CLOUD_BASE } = await import('../../../api/cloud/config')
const live = parseGateCatalog({
version: 1,
@@ -110,7 +111,8 @@ describe('the gate, signed out', () => {
expect(u.searchParams.get('utm_content')).toBe('model-picker')
expect(u.searchParams.get('scheme')).toBe('locallyuncensored')
}
- expect(openExternal.mock.calls.flat().some((u) => /stripe/i.test(String(u)))).toBe(false)
+ // Never straight to the payment provider: both open the LU site itself.
+ expect(opened().map((u) => u.origin)).toEqual([new URL(CLOUD_BASE).origin, new URL(CLOUD_BASE).origin])
})
it('counts "See all plans" as a plan click and tags the pricing page', async () => {