Skip to content

fix(tests): sync assertions broken by #2173 and #2168#2200

Merged
esengine merged 1 commit into
esengine:mainfrom
nianyi778:fix/ci-test-sync-2173-2168
May 29, 2026
Merged

fix(tests): sync assertions broken by #2173 and #2168#2200
esengine merged 1 commit into
esengine:mainfrom
nianyi778:fix/ci-test-sync-2173-2168

Conversation

@nianyi778

Copy link
Copy Markdown

Problem

Three tests were broken by recent merged PRs:

  1. auto-git-rollback.test.tswrite_file output format changed from "wrote N chars" to "edited ... (M→N chars)" unified diff format by feat(cli): unified diff display for edit_file / write_file / multi_edit (#1251) #2173; the test regex /wrote \d+ chars/ no longer matches.

  2. slash.test.ts — Telegram's /telegram slash command added by feat: add Telegram channel support #2168 brings the release command count from 43 → 44; assertion toHaveLength(43) fails.

  3. ui-slash-suggestions.test.tsx — Same count change (43 → 44) plus the rendered frame text "43 commands""44 commands".

Fix

  • Update the write_file regex to match the new unified-diff output: /edited.*\d+.*chars/
  • Update both command-count assertions from 43 → 44

- auto-git-rollback: write_file output changed from 'wrote N chars' to
  'edited ... (M→N chars)' unified-diff format (esengine#2173); update regex.
- slash + ui-slash-suggestions: Telegram /telegram command added by esengine#2168
  brings the release command count from 43 to 44; update both assertions.
@nianyi778

Copy link
Copy Markdown
Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ 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".

@nianyi778

Copy link
Copy Markdown
Author

@esengine 这个 PR 只修了 3 个因最近合入的 #2173 / #2168 而断掉的测试断言——无逻辑改动,Codex 已过 ✅。合并后我们几个 open PR(#2124#2199)的 CI 红灯也会消失,麻烦抽空优先合一下 🙏

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.

2 participants