From 90bb28eb99bc76e4c2c2f3575dd90d45d71fa969 Mon Sep 17 00:00:00 2001 From: Maanil Verma Date: Thu, 16 Jul 2026 00:11:37 +0530 Subject: [PATCH] test(onboarding-tour): reach the gate the entry tests name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each case left isCloud false, so isOnboardingCandidate returned on its first guard and the flag, new-user, and subscription branches never ran — deleting any of them kept the suite green. --- .../persistence/composables/useWorkflowPersistenceV2.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/workflow/persistence/composables/useWorkflowPersistenceV2.test.ts b/src/platform/workflow/persistence/composables/useWorkflowPersistenceV2.test.ts index db52f18f66..9384e36e90 100644 --- a/src/platform/workflow/persistence/composables/useWorkflowPersistenceV2.test.ts +++ b/src/platform/workflow/persistence/composables/useWorkflowPersistenceV2.test.ts @@ -715,6 +715,7 @@ describe('useWorkflowPersistenceV2', () => { }) it('opens the templates browser when the flag is on but the user is not new', async () => { + onboardingMocks.isCloud = true onboardingMocks.onboardingTourEnabled = true onboardingMocks.isNewUser = false const entryStore = useOnboardingEntryStore() @@ -729,6 +730,7 @@ describe('useWorkflowPersistenceV2', () => { }) it('opens the templates browser when the flag is off', async () => { + onboardingMocks.isCloud = true onboardingMocks.onboardingTourEnabled = false onboardingMocks.isNewUser = true const entryStore = useOnboardingEntryStore() @@ -745,6 +747,7 @@ describe('useWorkflowPersistenceV2', () => { it('opens the templates browser, not Getting Started, when subscriptions are disabled', async () => { // The tour refuses when subscriptions are off, so the takeover must not show // — otherwise it would dismiss into a bare canvas with no tour. + onboardingMocks.isCloud = true onboardingMocks.onboardingTourEnabled = true onboardingMocks.isNewUser = true onboardingMocks.isSubscriptionEnabled = false @@ -760,6 +763,7 @@ describe('useWorkflowPersistenceV2', () => { }) it('does not show Getting Started for a flagged new user arriving via a template URL', async () => { + onboardingMocks.isCloud = true onboardingMocks.onboardingTourEnabled = true onboardingMocks.isNewUser = true routeMocks.query = { template: 'default-template-id' }