Skip to content

test(e2e): onboarding-modes — select vault default and flip to a selectable STT provider#4521

Merged
senamakel merged 2 commits into
tinyhumansai:mainfrom
senamakel:fix/onboarding-e2e-ci-gating
Jul 5, 2026
Merged

test(e2e): onboarding-modes — select vault default and flip to a selectable STT provider#4521
senamakel merged 2 commits into
tinyhumansai:mainfrom
senamakel:fix/onboarding-e2e-ci-gating

Conversation

@senamakel

@senamakel senamakel commented Jul 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix the two remaining onboarding-modes desktop-E2E failures, both CI-environment gating the release lane exposed for the first time. Test-only; no product change.

Problem

  1. Custom Vault (final wizard step) never finishes. VaultSetupStep hides the choice cards and auto-selects "configure" only for local sessions (defaultDisabled={isLocalSession}, hideChoiceCards={isLocalSession}). The E2E authenticates via the cloud deep-link bypass, so the session is non-local — the vault choice cards render with an enabled default, and CustomWizardStep's Finish button stays disabled={choice === null} until one is picked. The test assumed a local session and just advanced, so Finish never enabled → onboarding-next-button ... stayed disabled and the wizard never completed. (Confirmed in the failure DOM: onboarding-custom-vault-step-default card present.)
  2. Voice STT persistence can't pass. The test flipped the STT provider to whisper, which renders as <option disabled> in the CI container (no local Whisper assets) — a synthetic change reverts and never persists, so stt_provider === 'whisper' could never hold.

Solution

app/test/e2e/specs/onboarding-modes.spec.ts:

  • Vault: select onboarding-custom-vault-step-default when the card is present (both the walks-all-steps and voice-config tests); a local session (cards hidden) still just advances.
  • Voice: pick a genuinely selectable (non-disabled) STT option, dispatch the change, read back the value the control committed, and assert persistence against that; skip gracefully if no alternate is selectable.

Submission Checklist

Impact

  • Foundation E2E shard only. No runtime/product change.

Related

https://claude.ai/code/session_01UAetDHQCyFtWnyP7RwGdJU

…able STT

Both failures were CI-environment gating the release-lane E2E first exposed:

- Custom Vault (final step): VaultSetupStep hides the choice cards and auto-
  selects "configure" only for LOCAL sessions (`defaultDisabled={isLocalSession}`).
  The E2E authenticates via the cloud deep link, so the session is non-local —
  the choice cards render with an enabled default, and the Finish button stays
  disabled (`choice === null`, CustomWizardStep) until one is picked. The test
  assumed a local session and just advanced, so Finish never enabled and the
  wizard never completed. Now select the vault default when the card is present
  (a local session, cards hidden, still just advances).

- Voice STT persistence: the test flipped the STT provider to `whisper`, which
  renders as `<option disabled>` in the CI container (no local Whisper assets) —
  the synthetic change reverts and never persists, so the assertion could never
  pass. Now pick a genuinely selectable (non-disabled) option, read back the
  value the control commits, and skip gracefully if no alternate is selectable.

Both are test-only; no product change.

Refs tinyhumansai#4517
Claude-Session: https://claude.ai/code/session_01UAetDHQCyFtWnyP7RwGdJU
@senamakel
senamakel requested a review from a team July 4, 2026 21:46
@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 44 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4f968d3a-07db-42b2-886c-5dbafecccb35

📥 Commits

Reviewing files that changed from the base of the PR and between 42ce5c0 and d15a408.

📒 Files selected for processing (6)
  • app/test/e2e/specs/onboarding-modes.spec.ts
  • docs/README.de.md
  • docs/README.ja-JP.md
  • docs/README.ko.md
  • docs/README.ur-pk.md
  • docs/README.zh-CN.md

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b50042773

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +416 to +420
if (!want) {
stepLog(
'No alternate selectable STT provider in this environment — skipping the provider-flip persistence assertion'
);
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Do not silently pass this STT persistence case

In a fresh/default E2E workspace the STT routing select starts on cloud, while voice_providers defaults to empty and VoicePanel only renders the Cloud STT option unless another provider was previously enabled (app/src/components/settings/panels/VoicePanel.tsx lines 1004-1022). In that normal CI case candidate is null, so this branch returns from the test as a pass without asserting that local_ai.stt_provider persists or even finishing the onboarding flow; seed an alternate provider or explicitly skip/fail so the regression this spec is named for remains visible.

Useful? React with 👍 / 👎.

@senamakel
senamakel merged commit bb642dc into tinyhumansai:main Jul 5, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant