Skip to content

fix(frontend): update AppRoot test to match actual login screen text - #327

Merged
znnnnnnn-wil merged 1 commit into
1024XEngineer:mainfrom
gac0812:fix/approot-test-text
Aug 20, 2026
Merged

fix(frontend): update AppRoot test to match actual login screen text#327
znnnnnnn-wil merged 1 commit into
1024XEngineer:mainfrom
gac0812:fix/approot-test-text

Conversation

@gac0812

@gac0812 gac0812 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

问题描述

CI 测试失败,因为 中的测试期望找到文本 "登录或注册",但实际的登录界面只显示 "登录"。

修复内容

  • 更新测试第 370 行的文本断言,从 改为 ,以匹配 中的实际 UI 文本

测试验证

✅ 本地运行 所有 15 个测试全部通过

相关 CI 运行

The login screen displays '登录' as the title, not '登录或注册'.
Updated the test expectation to match the actual UI text.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fennoai fennoai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The updated AppRoot sign-out assertion now matches the LoginScreen title rendered by the current frontend (登录). The complete one-file diff is consistent with the existing login-screen tests and introduces no correctness issues.

Verification: reviewed the fixed SHA diff and corresponding head-source implementation. The focused Jest test was not run because frontend/node_modules is not present in the workspace.

@znnnnnnn-wil
znnnnnnn-wil merged commit 2a5e55c into 1024XEngineer:main Aug 20, 2026
4 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.

2 participants