diff --git a/app/test/e2e/specs/onboarding-modes.spec.ts b/app/test/e2e/specs/onboarding-modes.spec.ts index 7093537af..219bfd43a 100644 --- a/app/test/e2e/specs/onboarding-modes.spec.ts +++ b/app/test/e2e/specs/onboarding-modes.spec.ts @@ -305,11 +305,17 @@ describe('Onboarding modes — Simple (Cloud) vs Advanced (Custom)', () => { await pause(400); await clickOnboardingNext(); - // Step 8 — Custom Vault. Final step → Finish. VaultSetupStep auto-selects - // "configure" and hides the choice cards for local sessions (the default - // option is disabled when no cloud account backs the vault), so there is no - // -default button to click — just advance. + // Step 8 — Custom Vault. Final step → Finish. VaultSetupStep hides the + // choice cards and auto-selects "configure" only for LOCAL sessions + // (`defaultDisabled={isLocalSession}`); the E2E logs in via the cloud-auth + // deep link, so the session is non-local — the choice cards ARE shown with + // an enabled default, and the Finish button stays disabled (`choice === null`) + // until one is picked. Select the default when the card is present; a local + // session (cards hidden) just advances. expect(await testIdExists('onboarding-custom-vault-step', 10_000)).toBe(true); + if (await testIdExists('onboarding-custom-vault-step-default', 2_000)) { + await clickTestId('onboarding-custom-vault-step-default'); + } await pause(400); await clickOnboardingNext(); @@ -381,28 +387,39 @@ describe('Onboarding modes — Simple (Cloud) vs Advanced (Custom)', () => { expect(await testIdExists('stt-provider-select', 10_000)).toBe(true); const before = readSectionString(readConfigToml(), 'local_ai', 'stt_provider'); - const want = before === 'whisper' ? 'cloud' : 'whisper'; - stepLog(`stt_provider before=${before ?? ''} → want=${want}`); - // Drive the same onChange path the user would. The `