优化
This commit is contained in:
@@ -170,6 +170,20 @@ test('pages expose loading empty error offline and permission diagnostics with g
|
||||
assert.doesNotMatch(dispatch + outbound, /DeliveryOrder|deliveryStatus|customerVisit|\/deliveries/)
|
||||
})
|
||||
|
||||
test('fulfillment workbench entries open task lists before details and keep explicit cross-workflow resume', async () => {
|
||||
const [dispatch, outbound] = await Promise.all([read('../src/pages/dispatch/dispatch.vue'), read('../src/pages/outbound/outbound.vue')])
|
||||
assert.match(dispatch, /resumeOnEntry: false/)
|
||||
assert.match(dispatch, /onLoad\(options\) \{ this\.resumeOnEntry = options\?\.resume === '1' \}/)
|
||||
assert.match(dispatch, /if \(this\.resumeOnEntry && fulfillment\.dispatch\.currentNo\) this\.openTask/)
|
||||
assert.match(outbound, /if \(!this\.bootstrapped\) \{ this\.bootstrapped = true; this\.scanCode = ''; this\.loadTasks\(\); return \}/)
|
||||
assert.match(outbound, /pages\/dispatch\/dispatch\?resume=1/)
|
||||
for (const page of [dispatch, outbound]) {
|
||||
assert.match(page, /detail-toolbar/)
|
||||
assert.match(page, /上次作业/)
|
||||
assert.match(page, /返回列表/)
|
||||
}
|
||||
})
|
||||
|
||||
test('dispatch vehicle-plate conflict uses actionable Chinese copy and preserves diagnostics', () => {
|
||||
const error = toDispatchError({
|
||||
code: 'A0409',
|
||||
|
||||
Reference in New Issue
Block a user