This commit is contained in:
2026-08-13 17:24:40 +08:00
parent 885ff9dc9e
commit 6ad438e733
4 changed files with 14 additions and 3 deletions
@@ -25,6 +25,12 @@ test('覆盖国内仓、待单、完成入库、部分和全部出库及列表
'/inventories/${inventoryId}', 'transactions?.length === 3']) assert.match(moduleSource, new RegExp(token.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')))
})
test('在创建测试数据前覆盖无筛选整柜入库列表', () => {
const unfilteredList = '`${BASE}/inbounds?page=1&size=20`'
assert.match(moduleSource, /无筛选查询整柜入库单列表/)
assert.ok(moduleSource.indexOf(unfilteredList) < moduleSource.indexOf("api(context, 'POST', `${BASE}/inbounds`"))
})
test('覆盖库存不足、版本冲突及两类幂等行为', () => {
assert.match(moduleSource, /库存不足禁止出库/)
assert.match(moduleSource, /过期库存版本冲突/)