Settings language coverage verifies that the General settings language selector keeps locale preference and resolved UI locale separate.
| Dimension | Values |
|---|---|
| Platform locale source | Electron app.getPreferredSystemLanguages() preferred list, Electron app.getLocale() fallback |
| User preference | system, zh-CN, en-US |
| Persisted resolved locale | zh-CN, en-US |
| UI surface | Settings General section, application chrome driven by ZCodeIntlProvider |
| Case | Setup | Action | Assertions | Spec |
|---|---|---|---|---|
| SL-01 system preferred Chinese with English app locale fallback | Mock preferred languages as ["zh-Hans-CN", "en-CN"], mock app.getLocale() as en-US, start from explicit English preference |
Select System default in Settings General |
UI switches to Chinese, setting.json keeps localePreference: "system" and writes resolved locale: "zh-CN" |
packages/desktop/test/e2e/settings/general/settings-language-system-default.test.ts |
| SL-02 explicit language labels are autonyms | Current locale may be English or Chinese | Open language selector | 中文简体 and English remain readable in their own language |
Pending behavior coverage; the source-string guard was removed during unit-test cleanup |
| Case | Reason |
|---|---|
| Full OS language mutation during E2E | Mutating host OS language is not deterministic in CI; SL-01 uses Electron API mocks at the host boundary instead. |
| Provider replay fixtures | Settings language selection does not call model providers, so no DeepSeek request fixture is required. |
packages/desktop/test/e2e/settings/providers/provider-plan-navigation-labels.test.ts. No model request fixture is needed: this case never sends a prompt or connects an account.packages/desktop/.e2e-artifacts/desktop-e2e-20260917143155914-p51546-7a7006e045bf7287/.Personal Plan instead of the current Individual Plan); corrected independently of the sidebar labels.--mochaOpts.grep; report: packages/desktop/.e2e-artifacts/desktop-e2e-20260917-143637-861/summary.md.Team badge and Individual Plan usage tab. The former assertion only accepted Chinese; the latter only accepted obsolete English wording. Both cases now run explicitly in zh-CN/en-US, assert the specific badge/tab and retain quota, model and connection persistence checks. The command-palette text at the start of the body dump was not the cause of the missing-string assertion. Full-suite transport errors after interruption are not counted as product regressions.packages/desktop/.e2e-artifacts/desktop-e2e-20260917-144717-306/summary.md. Desktop E2E typecheck, workspace typecheck, lint (55 existing warnings, no errors), and architecture checks passed. These two findings are resolved; this targeted run does not claim full-suite coverage.settings/ directory with helper imports updated. The promotion dry run only supports conversation-session paths, so this follows the existing settings-domain migration procedure.ZCODE_E2E_MANUAL_REVIEW: 4/4 passed. Evidence: packages/desktop/.e2e-artifacts/desktop-e2e-20260918-010520-642/summary.json. The first skip-build attempt stopped before tests because the existing renderer lacked the E2E store bridge; the successful run rebuilt the application and agent.packages/desktop/.e2e-artifacts/desktop-e2e-20260918-020819-008/summary.json. Covers Chinese/dark and English/light at wide/narrow widths. Two related UI test files passed 208 assertions; typecheck, desktop E2E typecheck, lint and architecture checks passed. Real phone remote transport and Docker were not run.