This commit is contained in:
2026-09-20 21:16:20 +08:00
parent 3ab07188d1
commit 97d0f82256
3 changed files with 17 additions and 10 deletions
@@ -375,7 +375,7 @@ test('collects the backend-required first-leg fields', () => {
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 \}\} 条须商检/)
assert.match(source, /<small v-if="item\.woodenProduct">自动商检<\/small>/)
})
test('distills order creation into the confirmed prototype sections with server pricing', () => {
@@ -441,7 +441,12 @@ 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>|填写货物信息,创建新的头程运输订单/)
assert.match(createHubSource, /<h1 class="create-hub-title">头程下单<\/h1>/)
assert.doesNotMatch(createHubSource, /填写货物信息,创建新的头程运输订单/)
assert.match(source, /\.is-create-route \.prototype-order-form \{[^}]*align-items: start/)
assert.doesNotMatch(source, /\.is-create-route \.order-basic-section, \.is-create-route \.destination-section \{ height: 100%; \}/)
assert.match(source, /\.is-create-route \.order-basic-section > \.order-section-heading, \.is-create-route \.destination-section > \.order-section-heading \{[^}]*height: 74px[^}]*min-height: 74px/)
assert.match(source, /\.is-create-route \.order-basic-section > \.order-section-heading h3, \.is-create-route \.destination-section > \.order-section-heading h3 \{[^}]*font-size: 17px[^}]*line-height: 24px/)
})
test('shows an optional LX inbound order number for one-click dropship orders', () => {