From bb642dc301e78e4e9cd3baf93b64cda7bee51ef3 Mon Sep 17 00:00:00 2001 From: Steven Enamakel <31011319+senamakel@users.noreply.github.com> Date: Sat, 4 Jul 2026 17:05:17 -0700 Subject: [PATCH] =?UTF-8?q?test(e2e):=20onboarding-modes=20=E2=80=94=20sel?= =?UTF-8?q?ect=20vault=20default=20and=20flip=20to=20a=20selectable=20STT?= =?UTF-8?q?=20provider=20(#4521)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/test/e2e/specs/onboarding-modes.spec.ts | 64 ++++++++++++++------- docs/README.de.md | 2 +- docs/README.ja-JP.md | 2 +- docs/README.ko.md | 2 +- docs/README.ur-pk.md | 2 +- docs/README.zh-CN.md | 2 +- 6 files changed, 47 insertions(+), 27 deletions(-) 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 `