|
|
21026b0a07
|
fix: 修复剩余6个e2e失败 — 选择器/路由/超时/默认tab
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 5s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 12s
Test / e2e-test (push) Failing after 7m5s
- manage-recipes: 展开公共配方库section后再查找recipe-row
- pr27-features: /#/manage改为/manage(HTML5 history模式)
- performance: 搜索后接受empty-hint作为有效结果
- recipe-search: .empty-state改为.empty-hint
- demo-walkthrough: 超时从15s加到20s
- diary-flow: 默认tab是brand不是diary,改为验证brand内容
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-13 21:26:22 +00:00 |
|
|
|
b8b4eceff3
|
fix: 修复全部27个失败的e2e测试
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 5s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 12s
Test / e2e-test (push) Failing after 2m14s
根本原因: 所有测试硬编码了只在生产环境有效的admin token,
CI创建新数据库时token不同导致全部认证失败。
修复:
- CI: 设置已知ADMIN_TOKEN环境变量传给后端和Cypress
- cypress/support/e2e.js: 新增cy.getAdminToken()动态获取token
- 24个spec文件: 硬编码token改为cy.getAdminToken()
- UI选择器: 适配管理页面从tab移到UserMenu、编辑器DOM变化
- API: create_recipe→share_recipe、ingredients格式、权限变化
- 超时: 300s→420s适应32个spec
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-13 21:08:40 +00:00 |
|
|
|
b58ba4e99f
|
test: PR#28测试覆盖 — 用户名大小写、一次改名、自动翻译、去重
PR Preview / test (pull_request) Has been skipped
Deploy Production / test (push) Successful in 6s
PR Preview / teardown-preview (pull_request) Successful in 13s
Test / unit-test (push) Successful in 5s
PR Preview / deploy-preview (pull_request) Has been skipped
Test / build-check (push) Successful in 4s
Deploy Production / deploy (push) Successful in 6s
Test / e2e-test (push) Successful in 49s
单元测试274个(新增18个):
- recipeNameEn额外用例、oilEn翻译、用户名大小写匹配、改名守卫
E2E新增:
- 注册大小写去重、登录大小写匹配、一次改名+拒绝二次
- 配方自动翻译、改名重翻译、删除用户转移配方
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-13 11:55:02 +00:00 |
|
|
|
e0ee1cba8c
|
test: 补充recipeNameEn翻译、重复精油、改名重翻译、去重跳过测试
PR Preview / test (pull_request) Has been skipped
Deploy Production / test (push) Successful in 6s
PR Preview / teardown-preview (pull_request) Successful in 14s
PR Preview / deploy-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
Deploy Production / deploy (push) Successful in 6s
Test / e2e-test (push) Successful in 53s
单元测试256个全部通过(新增14个):
- recipeNameEn: 11个翻译测试
- 重复精油检查: 3个
后端: 补充"缓解"翻译词条
E2E: 改名重翻译、删除用户去重跳过
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 14:07:09 +00:00 |
|
|
|
6f1b9f3f68
|
test: PR#27新增单元测试和e2e测试
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 5s
Test / build-check (push) Successful in 3s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 17s
Test / e2e-test (push) Successful in 53s
后端: auto_translate/title_case 14个测试
前端: EDITOR_ONLY_TAGS、drop单复数、已下架过滤 11个测试
E2E: en_name title case、删除用户转移配方、管理配方登录引导
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
2026-04-12 10:26:44 +00:00 |
|