Repository navigation
test(ui): 报价卡测试结束后恢复原有 locale - #363
Merged
Merged
Conversation
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.
问题与结果
#325 的报价卡测试在 beforeAll 固定全局 locale 为 en-US,afterAll 只恢复 DOM;同进程后续测试会继承 locale。本变更保存进入用例前的 locale,并在 afterAll 恢复。只改测试清理,不改变币种实现或增加 UI 范围。
验证
环境:Linux x64 / Bun 1.4.2。
上述全仓检查在精确集成 tree 8f8838cc035a056b87a80eb1fce2f897adb34d00 执行;远端分支会核对相同 tree 后合并。仓库规定的 --isolate 测试在 #325 原实现上也通过,本 PR 修补共享进程的测试清理质量。无可见 UI 变化。未运行付费或真实模型评测,未主动 rerun Actions;不把无 CI 记录称为 CI 通过。