test(admin): unwrap container workbench details

This commit is contained in:
2026-09-09 01:52:59 +08:00
parent c5d73b8e8f
commit 04c056f744
3 changed files with 8 additions and 4 deletions
@@ -26,8 +26,10 @@ const matrix = read('../../../docs/国内货柜履约/货柜管理全链验收
test('container acceptance reads the canonical domestic workbench route', () => {
assert.match(containerLoadingAcceptance, /const DOMESTIC_CONTAINERS = `\$\{CONTAINERS\}\/domestic`/)
assert.match(containerLoadingAcceptance, /function containerRecord\(value\) \{ return value\?\.container \|\| value \}/)
assert.doesNotMatch(containerLoadingAcceptance, /request\('GET', `\$\{CONTAINERS\}\/\$\{containerId\}`\)/)
assert.match(phase3LoadingAcceptance, /\/api\/platform\/v1\/containers\/domestic\/\$\{containerBookingId\}/)
assert.match(phase3LoadingAcceptance, /containerRecord\(context\.apiSuccess/)
})
test('DRAFT stores all five transport fields and release validates the persisted snapshot', () => {