This commit is contained in:
2026-08-17 19:13:41 +08:00
parent 16a271f7e0
commit c6a1bcf611
5 changed files with 64 additions and 7 deletions
@@ -480,6 +480,15 @@ test('copies reactive order drafts into plain request data', () => {
assert.doesNotMatch(source, /structuredClone\((?:form|order\.)/)
})
test('shows authoritative warehouse, loading and sailing fields on desktop and narrow screens', () => {
for (const label of ['国内收货仓', '期望出运', '柜号 / 柜次', '船名 / 航次', '预计船期', '更新时间']) {
assert.match(source, new RegExp(label.replace('/', '\\/')))
}
assert.match(source, /businessSummary\.cabinetNo \|\| .*businessSummary\.containerNo/)
assert.match(source, /businessSummary\.vesselName.*businessSummary\.voyageNo/s)
assert.match(source, /businessSummary\.sailingAt/)
})
test('loads complete order detail before editing and rejects an unavailable historical warehouse', () => {
assert.match(source, /async function openEdit\(order: FirstLegOrder\)/)
assert.match(source, /const detailedOrder = await store\.loadDetail\(order\.id\)/)