This commit is contained in:
2026-09-20 20:53:23 +08:00
parent e89b9d3722
commit dd7306c7fc
3 changed files with 8 additions and 12 deletions
@@ -372,7 +372,9 @@ test('collects the backend-required first-leg fields', () => {
}
assert.match(source, /form\.channelName = channel\?\.channelName/)
assert.match(source, /v-model="item\.woodenProduct"/)
assert.match(source, /第 \{\{ woodenCargoLines\.join\('、'\) \}\} 条货物为木制品,请将“是否商检”选择为“是”/)
assert.match(source, /form\.customsInspection = form\.items\.some\(\(item\) => item\.woodenProduct\) \? true : null/)
assert.match(source, /木制品<small>勾选后自动商检<\/small>/)
assert.doesNotMatch(source, /label="是否商检"/)
assert.match(source, /第 \{\{ index \+ 1 \}\} 条须商检/)
})
@@ -439,6 +441,7 @@ test('matches the prototype two-column create layout and reset action', () => {
assert.match(editorShellSource, /submit-gradient 5s ease-in-out infinite/)
assert.match(editorShellSource, /submit-shine 3\.2s ease-in-out infinite/)
assert.match(editorShellSource, /@media \(prefers-reduced-motion: reduce\)/)
assert.doesNotMatch(createHubSource, /<h1>头程下单<\/h1>|填写货物信息,创建新的头程运输订单/)
})
test('shows an optional LX inbound order number for one-click dropship orders', () => {