12 lines
325 B
Python
12 lines
325 B
Python
# MIT License
|
||
# Copyright (c) 2024
|
||
"""最小端到端测试:schema 校验。"""
|
||
|
||
from autodemo.schema import DSLSpec
|
||
|
||
|
||
def test_dsl_schema_defaults() -> None:
|
||
spec = DSLSpec(steps=[{"action": "click", "target": {"Name": "btn"}}])
|
||
assert spec.retry_policy["max_attempts"] == 2
|
||
assert spec.waits["appear"] == 5.0
|