Repository navigation
test(e2e): match English uninstall output after #326 - #330
Merged
Merged
Conversation
#326 translated the uninstall command's user-facing output to English, but two e2e assertions still expected the old Chinese strings, so CI on main went red: e2e.test.ts '卸载完成' -> 'teamai uninstalled' scope-isolation-e2e.test.ts '正在卸载 project scope(项目级)' -> 'Uninstalling project scope' The English output is the intended behavior (CLI output must be English); only the stale assertions needed updating. These never failed on #326's own runs because its PR-level e2e job was queued behind the e2e-fixture-repo concurrency lock and got dropped on merge, and its post-merge run on main was cancelled by the next push. Co-authored-by: Cursor <[email protected]>
Walternater
pushed a commit
to Walternater/teamai-cli
that referenced
this pull request
Nov 2, 2026
) Tencent#326 translated the uninstall command's user-facing output to English, but two e2e assertions still expected the old Chinese strings, so CI on main went red: e2e.test.ts '卸载完成' -> 'teamai uninstalled' scope-isolation-e2e.test.ts '正在卸载 project scope(项目级)' -> 'Uninstalling project scope' The English output is the intended behavior (CLI output must be English); only the stale assertions needed updating. These never failed on Tencent#326's own runs because its PR-level e2e job was queued behind the e2e-fixture-repo concurrency lock and got dropped on merge, and its post-merge run on main was cancelled by the next push. Co-authored-by: Cursor <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainCI has been red since feat(opencode): sync built-in and agent hooks as an OpenCode plugin #326 (run 32938621010). feat(opencode): sync built-in and agent hooks as an OpenCode plugin #326 translatedsrc/uninstall.tsuser-facing output to English, but two e2e assertions still expected the old Chinese strings.src/__tests__/e2e/e2e.test.ts:'卸载完成'->'teamai uninstalled'src/__tests__/scope-isolation-e2e.test.ts:'正在卸载 project scope(项目级)'->'Uninstalling project scope'Why #326 went in green
Worth flagging separately: #326's PR-level
e2ejob never ran. It was queued behind thee2e-fixture-repoconcurrency lock (cancel-in-progress: false) and was dropped when the PR merged. Its post-merge run onmainwas then cancelled by the workflow-levelcancel-in-progress: truewhen the next commit landed. So the merge path can silently skip e2e entirely — that gap is not addressed here and probably deserves its own fix.The published
0.21.0-beta.3is unaffected: this was a stale test assertion, not a product bug.Test plan
All executed locally against a real build (
npm run build), not just type check:npx tsc --noEmit— cleannpx vitest run— 164 files / 2228 tests passednpx vitest run --config vitest.e2e.config.ts— 11 files / 64 tests passed, 24 skipped (the remote-gated ones that need the CI fixture repo credentials)scope-isolation-e2e.test.ts > uninstall --dry-run: states it is acting on the project scope— passes locally (does not need remote fixtures)teamai uninstalledis really emitted: ran the built CLI asHOME=<sandbox> node dist/index.js uninstall --forceagainst a throwaway home, output ends with✔ teamai uninstalled. The valid-config path (uninstall.ts:825) prints the same string, as shown in the failing CI log.Made with Cursor