test: cover customer inbound fee confirmation

This commit is contained in:
2026-09-09 18:43:08 +08:00
parent d9603aa7da
commit 7678fd85ff
2 changed files with 68 additions and 1 deletions
@@ -31,3 +31,12 @@ test('automatic fee adjustment confirms the ten percent tolerance boundary', asy
assert.match(source, /人工对客单价写入最新费用版本/)
assert.match(source, /money\(published\?\.unitPrice\) === adjustedUnitPrice/)
})
test('customer confirms chargeable quantity and manual unit price in one locked version', async () => {
const source = await readFile(moduleFile, 'utf8')
assert.match(source, /Client 读取已推送计费量、对客单价和费用合计/)
assert.match(source, /Client 一次确认计费量、对客单价和费用/)
assert.match(source, /customerConfirmationStatus === 'CONFIRMED'/)
assert.match(source, /客户费用确认重放返回同一锁定版本/)
assert.match(source, /客户确认后平台不得再次修改计费量或对客单价/)
})