This commit is contained in:
2026-10-16 18:26:06 +08:00
parent f8533772b7
commit b8c9fddf8e
3 changed files with 71 additions and 64 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ test('pallet comparison tolerates mixed API versions and canonical code formatti
test('quantity disassembly has no extra carton scanner', () => {
assert.doesNotMatch(source, /relabel-move-carton/)
assert.match(source, /actualSource:/)
assert.match(source, /来源已确认:.*尚未拆出.*绑定成功后才保存拆托明细/)
assert.match(source, /来源已确认:\{\{ source.palletCode \}\}<\/text>/)
assert.match(source, /this\.message = `托盘 \$\{this\.target\.palletCode\} 已绑定`/)
})
@@ -96,7 +96,7 @@ test('rescan same bound pallet does not call stock movement', async () => {
value.showBindingMessage = (title, content) => { message = content }
value.run = async () => assert.fail('same pallet must not move stock')
await value.submitRebind()
assert.match(message, /不会重复扣库存/)
assert.match(message, /已绑定此托盘/)
})
test('target confirmation submits binding directly, with no second submit button', async () => {
@@ -183,7 +183,7 @@ test('missing source scan shows modal and never submits a binding', async () =>
value.bind = async () => assert.fail('must not bind without source confirmation')
value.resolve = async () => assert.fail('must validate source first')
await value.confirmTargetAndBind()
assert.match(message, /扫描并确认实际来源托盘/)
assert.match(message, /扫描确认来源托盘/)
})
test('target lookup failure cannot submit binding or report success', async () => {