diff --git a/apps/sim/app/(auth)/oauth/consent/consent-view.test.tsx b/apps/sim/app/(auth)/oauth/consent/consent-view.test.tsx index 43d08b5fbd5..243adcf8287 100644 --- a/apps/sim/app/(auth)/oauth/consent/consent-view.test.tsx +++ b/apps/sim/app/(auth)/oauth/consent/consent-view.test.tsx @@ -68,10 +68,13 @@ describe('OAuth consent view', () => { vi.useRealTimers() }) - it('shows the registered app, account and destination with one row per distinct capability', () => { + it('shows the account below the decisions without a CLI destination sentence', () => { expect(container.querySelector('h1')?.textContent).toBe('Authorize Sim CLI') expect(container.textContent).toContain('Continuing as test@example.com.') - expect(container.textContent).toContain('Returns to this computer.') + expect(container.textContent).not.toContain('Returns to this computer.') + expect( + Array.from(container.querySelectorAll('button')).map((element) => element.textContent) + ).toEqual(['Allow', 'Deny', 'Use another account']) expect(container.querySelectorAll('li')).toHaveLength(2) expect(button('Allow').disabled).toBe(false) expect(button('Deny').disabled).toBe(false) diff --git a/apps/sim/app/(auth)/oauth/consent/consent-view.tsx b/apps/sim/app/(auth)/oauth/consent/consent-view.tsx index a0a2ae85d18..b083ef34f92 100644 --- a/apps/sim/app/(auth)/oauth/consent/consent-view.tsx +++ b/apps/sim/app/(auth)/oauth/consent/consent-view.tsx @@ -152,12 +152,6 @@ export function OAuthConsentView({ ))} )} -
- Continuing as {email}.{' '}
-
Returns to {destination}.
@@ -192,6 +186,12 @@ export function OAuthConsentView({ )} +
+ Continuing as {email}.{' '}
+