Skip to content

test(e2e): match English uninstall output after #326 - #330

Merged
jeff-r2026 merged 1 commit into
mainfrom
fix/e2e-uninstall-english-assertions
Aug 26, 2026
Merged

jeff-r2026 merged 1 commit into
mainfrom
fix/e2e-uninstall-english-assertions

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Summary

Why #326 went in green

Worth flagging separately: #326's PR-level e2e job never ran. It was queued behind the e2e-fixture-repo concurrency lock (cancel-in-progress: false) and was dropped when the PR merged. Its post-merge run on main was then cancelled by the workflow-level cancel-in-progress: true when 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.3 is 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 — clean
  • npx vitest run — 164 files / 2228 tests passed
  • npx 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)
  • Verified teamai uninstalled is really emitted: ran the built CLI as HOME=<sandbox> node dist/index.js uninstall --force against 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.
  • CI e2e job on this PR (needs the fixture repo, only runnable in CI)

Made with Cursor

#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]>
@jeff-r2026
jeff-r2026 merged commit 7723fab into main Aug 26, 2026
7 checks passed
@jeff-r2026
jeff-r2026 deleted the fix/e2e-uninstall-english-assertions branch August 26, 2026 06:59
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]>
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