@routerhub/agent-rules 1.0.26 → 1.0.28

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.
Files changed (2) hide show
  1. package/AGENTS.base.md +2 -1
  2. package/package.json +1 -1
package/AGENTS.base.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  - 所有面向用户的页面内容(如按钮、输入框、提示、字段名等)必须全部使用英文,适配外国用户。
4
4
  - 代码注释、开发文档等统一使用中文,便于团队内部理解和维护。
5
+
5
6
  # Copilot Agent Rules - Base
6
7
 
7
8
  以下规则适用于所有使用此规则包的项目。各项目可通过 `AGENTS.private.md` 添加项目特定规则。
@@ -65,8 +66,8 @@
65
66
  - 自动化测试默认必须使用真实接口数据,禁止使用 mock/route.fulfill/本地伪造返回;仅在明确同意的情况下才允许使用模拟数据。
66
67
  - UI 自动化测试必须请求真实的后端接口,不允许使用本地 mock 数据或截断真实请求。
67
68
  - 写完业务后,必须自动打开 UI 自动化测试页面,执行 `pnpm run test:e2e:ui`,让开发者手动点击验证功能效果。
69
+ - 当用户要求“加测试用例”时,必须主动执行 `npm run test:e2e:ui` 供开发者查看具体效果,并明确说明本次主要涉及的测试用例名称或编号。
68
70
  - 打开 UI 自动化测试后,应明确告知当前业务对应的具体测试用例名称或编号,让开发者清楚当前验证范围。
69
- - 编写自动化测试时,关键步骤之间需间隔 2 秒后再执行下一步,以保证操作过程可观察。
70
71
  - 自动化测试执行完毕后,自动打开 UI 界面,允许开发者进行手动验证。
71
72
 
72
73
  - 如 UI 自动化测试端口被占用,需自动切换到未被占用的新端口,保证测试流程不中断。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@routerhub/agent-rules",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Shared Copilot agent rules and guidelines for RouterHub projects",
5
5
  "main": "AGENTS.base.md",
6
6
  "bin": {