From 7edec952af24252a6f1be0f989d33da4dc896f2e Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 11 Nov 2026 05:48:26 -0800 Subject: [PATCH] test(cloud): DS-b team-switch fixture carries the team detail and Switch action, as the app does --- .../CloudSetupPage.fixture.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/orca-cloud-setup/CloudSetupPage.fixture.tsx b/src/renderer/src/components/orca-cloud-setup/CloudSetupPage.fixture.tsx index add4e06bc24..3403f88a37c 100644 --- a/src/renderer/src/components/orca-cloud-setup/CloudSetupPage.fixture.tsx +++ b/src/renderer/src/components/orca-cloud-setup/CloudSetupPage.fixture.tsx @@ -1,4 +1,6 @@ +import { Users } from 'lucide-react' import { defineFixture } from '../../component-fixtures/component-fixture' +import { Button } from '@/components/ui/button' import type { CloudSetupStep } from '@/components/new-workspace/run-on/cloud-start-model' import { CloudSetupPage } from './CloudSetupPage' import { cloudSetupPageModel } from './cloud-setup-page-model' @@ -6,6 +8,14 @@ import type { CloudSetupFlow } from './use-cloud-setup-flow' const noop = (): void => {} +// What the app's team-switch hook supplies on "Switch to your team" (its one action). +const switchTeamAction = ( + +) + function flow(rows: CloudSetupStep[], teamSwitch = false): CloudSetupFlow { return { ...cloudSetupPageModel(rows, { teamSwitch }), @@ -17,7 +27,7 @@ function flow(rows: CloudSetupStep[], teamSwitch = false): CloudSetupFlow { inBrowser: false, error: null, canManageBilling: true, - teamAction: null, + teamAction: teamSwitch ? switchTeamAction : null, continueInBrowser: noop, startTrial: noop, fixBilling: noop, @@ -120,7 +130,12 @@ export const teamSwitchPlanUnknown = defineFixture({ page( [ { id: 'account', state: 'done' }, - { id: 'team', state: 'needed' }, + { + id: 'team', + state: 'needed', + detail: + 'Cloud workspaces belong to a team. Orca Staging Eval Team has a Team plan. Switch to start this workspace there.' + }, { id: 'github', state: 'needed', need: 'github', canFix: true }, { id: 'agent', state: 'optional' } ],