@routerhub/agent-rules 1.0.20 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.base.md +12 -1
- package/AGENTS.private.example.md +1 -0
- package/package.json +1 -1
package/AGENTS.base.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 页面内容英文、注释中文(tag: english-ui-chinese-comment)
|
|
2
|
+
|
|
3
|
+
- 所有面向用户的页面内容(如按钮、输入框、提示、字段名等)必须全部使用英文,适配外国用户。
|
|
4
|
+
- 代码注释、开发文档等统一使用中文,便于团队内部理解和维护。
|
|
1
5
|
# Copilot Agent Rules - Base
|
|
2
6
|
|
|
3
7
|
以下规则适用于所有使用此规则包的项目。各项目可通过 `AGENTS.private.md` 添加项目特定规则。
|
|
@@ -59,6 +63,8 @@
|
|
|
59
63
|
|
|
60
64
|
- 自动化测试默认必须使用真实接口数据,禁止使用 mock/route.fulfill/本地伪造返回;仅在明确同意的情况下才允许使用模拟数据。
|
|
61
65
|
- UI 自动化测试必须请求真实的后端接口,不允许使用本地 mock 数据或截断真实请求。
|
|
66
|
+
- 写完业务后,必须自动打开 UI 自动化测试页面,执行 `pnpm run test:e2e:ui`,让开发者手动点击验证功能效果。
|
|
67
|
+
- 打开 UI 自动化测试后,应明确告知当前业务对应的具体测试用例名称或编号,让开发者清楚当前验证范围。
|
|
62
68
|
- 编写自动化测试时,关键步骤之间需间隔 2 秒后再执行下一步,以保证操作过程可观察。
|
|
63
69
|
- 自动化测试执行完毕后,自动打开 UI 界面,允许开发者进行手动验证。
|
|
64
70
|
|
|
@@ -69,4 +75,9 @@
|
|
|
69
75
|
- 若规则之间有冲突,按以下优先级执行:
|
|
70
76
|
1. 项目私有规则(AGENTS.private.md)
|
|
71
77
|
2. 基础规则(此文件)
|
|
72
|
-
|
|
78
|
+
|
|
79
|
+
## 页面内容英文化(tag: english-page-content)
|
|
80
|
+
|
|
81
|
+
- 页面所有具体内容(如按钮、输入框、提示、字段名等)必须全部使用英文,包括如 password、username、login、submit 等常见词汇,不允许出现中文或中英文混用。
|
|
82
|
+
- 如有特殊需求需使用中文,需在项目私有规则中单独声明。
|
|
83
|
+
- 本规则适用于所有前端页面及相关交互内容。
|