Skip to content

Commit 4d356b4

Browse files
committed
fix: assert_text验证不应要求target - 修复蓝本400 Bad Request
1 parent eaaf807 commit 4d356b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/testing/blueprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def validate(blueprint: Blueprint) -> list[str]:
161161
f"页面{i+1}场景'{scenario.name}'步骤{k+1}:"
162162
f"未知操作类型'{step.action}'"
163163
)
164-
needs_target = step.action in ("click", "fill", "select", "assert_text", "assert_visible")
164+
needs_target = step.action in ("click", "fill", "select", "assert_visible")
165165
# wait 有两种用法: wait+target=等元素, wait+value=延时
166166
if step.action == "wait" and not step.target and not step.value:
167167
needs_target = True

0 commit comments

Comments
 (0)