Commit b79c972d authored by zhanhuasheng's avatar zhanhuasheng

bugfix

parent 6b6dd199
......@@ -123,7 +123,7 @@ api16:
url: api/v1/willai/local/aiQAList
method: post
data: {"page":1,"pageSize":10,"shopId":"${shopId}","v":"${v}","category": 2}
set_value: {"qa_id": "$.data.list[0].id","qa_num": "$.data.total"}
set_value: {"qa_num": "$.data.total"}
expected:
- eq: {"$.code": 0}
......@@ -140,6 +140,7 @@ api18:
url: api/v1/willai/local/aiQAList
method: post
data: {"page": 1,"pageSize": 100,"shopId": "${shopId}","v": "${v}","category": 2}
set_value: {"qa_id": "$.data.list[?(@.question == '${new_question}')].id","qa_num": "$.data.total"}
expected:
- eq: {"$.code": 0}
- exec: {"code": "assert res.json()['data']['total'] == str(int('${qa_num}') + 1)"}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment