@tea-agent/loop-agent 0.29.0 → 0.29.1

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.
@@ -0,0 +1,114 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "frontend-test-standard-scenarios-v1",
4
+ "scenarios": [
5
+ {
6
+ "id": "STD-FE-SMOKE-ENTRY",
7
+ "title": "入口可打开与壳层可见",
8
+ "category": "smoke",
9
+ "priority": "must",
10
+ "dimensionHint": "core",
11
+ "testPoints": ["冻结 baseUrl 可 open", "关键导航或页面壳可见"],
12
+ "minCases": 1
13
+ },
14
+ {
15
+ "id": "STD-FE-EMPTY-STATE",
16
+ "title": "列表空态",
17
+ "category": "empty",
18
+ "priority": "must",
19
+ "dimensionHint": "boundary",
20
+ "testPoints": ["无数据时空态文案或引导", "不白屏"],
21
+ "minCases": 1
22
+ },
23
+ {
24
+ "id": "STD-FE-LIST-PAGE",
25
+ "title": "列表渲染",
26
+ "category": "list",
27
+ "priority": "must",
28
+ "dimensionHint": "core",
29
+ "testPoints": ["表头/列或卡片列表可见", "有数据时行可渲染"],
30
+ "minCases": 1
31
+ },
32
+ {
33
+ "id": "STD-FE-PAGINATION",
34
+ "title": "分页或加载更多",
35
+ "category": "pagination",
36
+ "priority": "should",
37
+ "dimensionHint": "boundary",
38
+ "testPoints": ["翻页或加载更多可观察", "数据不足可 blocked 并写原因"],
39
+ "minCases": 0
40
+ },
41
+ {
42
+ "id": "STD-FE-CREATE-FORM-VALIDATION",
43
+ "title": "创建表单校验",
44
+ "category": "form",
45
+ "priority": "must",
46
+ "dimensionHint": "boundary",
47
+ "testPoints": ["必填/格式校验", "不提交明显脏数据"],
48
+ "minCases": 1
49
+ },
50
+ {
51
+ "id": "STD-FE-CREATE-SUCCESS",
52
+ "title": "创建成功反馈",
53
+ "category": "create",
54
+ "priority": "must",
55
+ "dimensionHint": "flow",
56
+ "testPoints": ["成功提示", "列表或详情可见新数据或等价反馈"],
57
+ "minCases": 1
58
+ },
59
+ {
60
+ "id": "STD-FE-VIEW-DETAIL",
61
+ "title": "详情查看",
62
+ "category": "detail",
63
+ "priority": "must",
64
+ "dimensionHint": "core",
65
+ "testPoints": ["从列表进入详情", "关键字段可读"],
66
+ "minCases": 1
67
+ },
68
+ {
69
+ "id": "STD-FE-UPDATE-OWNED",
70
+ "title": "更新归属数据",
71
+ "category": "update",
72
+ "priority": "should",
73
+ "dimensionHint": "flow",
74
+ "testPoints": ["仅可证明归属数据", "否则 blocked"],
75
+ "minCases": 0
76
+ },
77
+ {
78
+ "id": "STD-FE-DELETE-CONFIRM",
79
+ "title": "删除确认",
80
+ "category": "delete",
81
+ "priority": "should",
82
+ "dimensionHint": "flow",
83
+ "testPoints": ["确认框或等价保护", "归属规则"],
84
+ "minCases": 0
85
+ },
86
+ {
87
+ "id": "STD-FE-SEARCH-FILTER",
88
+ "title": "搜索筛选",
89
+ "category": "filter",
90
+ "priority": "must",
91
+ "dimensionHint": "core",
92
+ "testPoints": ["关键字或状态筛选结果变化"],
93
+ "minCases": 1
94
+ },
95
+ {
96
+ "id": "STD-FE-API-ERROR-TOAST",
97
+ "title": "后端错误可见反馈",
98
+ "category": "error",
99
+ "priority": "should",
100
+ "dimensionHint": "backend",
101
+ "testPoints": ["错误提示可观察", "可用 Mock"],
102
+ "minCases": 0
103
+ },
104
+ {
105
+ "id": "STD-FE-LOADING-DISABLED",
106
+ "title": "提交中防重复",
107
+ "category": "interaction",
108
+ "priority": "should",
109
+ "dimensionHint": "boundary",
110
+ "testPoints": ["loading 或按钮禁用"],
111
+ "minCases": 0
112
+ }
113
+ ]
114
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tea-agent/loop-agent",
3
- "version": "0.29.0",
3
+ "version": "0.29.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "loop-agent": "bin/loop-agent.js",
@@ -58,7 +58,7 @@ request
58
58
  获取 snapshot,并只使用 snapshot 中可见的 ref 或已知安全 locator。
59
59
 
60
60
  ```text
61
- playwright-cli open --browser=chrome --headed http://localhost:5173
61
+ playwright-cli open --browser=chrome --headless http://localhost:5173
62
62
  playwright-cli snapshot
63
63
  playwright-cli find "Sign in"
64
64
  playwright-cli fill e1 "user@example.com"
@@ -41,7 +41,7 @@ description: 根据 FE-test RAG 知识包生成可由受限 playwright_cli runti
41
41
  `-s=<case-id>` 建立 named session。
42
42
  3. 可独立执行的命令序列:使用 RAG `context.md` 中已解析的绝对 `baseUrl`(优先来自任务源
43
43
  `config.md`;缺失时默认 `http://localhost:5173`),必须以
44
- `playwright-cli open --browser=chrome --headed` 后接解析出的具体 base URL 开始;不得保留
44
+ `playwright-cli open --browser=chrome --headless` 后接解析出的具体 base URL 开始;不得保留
45
45
  base-url 占位符,也不得使用 `-s=<case-id>` 或其他 named session;再按需登录、数据准备、
46
46
  `snapshot` 后优先使用元素引用和操作。每个拟通过场景必须在 `open` 后以成功的 `find` 作为
47
47
  唯一结构化 UI 语义断言,再由 controller 执行 post-execution cleanup。`snapshot`、`goto`、