Merge remote-tracking branch 'origin/release/test' into dev

# Conflicts:
#	src/modules/overseas-warehouse/pages/DeliveryOrderDetailView.vue
#	src/modules/overseas-warehouse/pages/DispatchesView.vue
#	src/modules/overseas-warehouse/pages/OutboundsView.vue
This commit is contained in:
2026-09-02 14:47:03 +08:00
17 changed files with 212 additions and 95 deletions
@@ -215,13 +215,12 @@ describe('InboundCodeRelationshipDialog contract', () => {
wrapper.unmount()
})
it('removes the retired Drawer component and all Admin consumer references', () => {
it('removes the retired Drawer component and keeps the Dialog only in confirmed Admin consumers', () => {
const root = process.cwd()
expect(existsSync(resolve(root, 'src/shared/components/InboundCodeRelationshipDrawer.vue'))).toBe(false)
expect(existsSync(resolve(root, 'src/shared/components/InboundCodeRelationshipDrawer.test.ts'))).toBe(false)
const dialogConsumerFiles = [
'src/modules/inbounds/pages/InboundOrdersView.vue',
'src/modules/inbounds/components/InboundTaskList.vue',
'src/modules/overseas-warehouse/pages/InventoryTransactionsView.vue',
]
const consumerSources = dialogConsumerFiles.map((file) => readFileSync(resolve(root, file), 'utf8'))
@@ -233,6 +232,10 @@ describe('InboundCodeRelationshipDialog contract', () => {
expect(consumer).toContain('<InboundCodeRelationshipDialog')
})
const inboundTasks = readFileSync(resolve(root, 'src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
expect(inboundTasks).not.toContain('InboundCodeRelationshipDrawer')
expect(inboundTasks).not.toContain('InboundCodeRelationshipDialog')
const unifiedOrders = readFileSync(resolve(root, 'src/modules/unified-orders/pages/UnifiedOrdersView.vue'), 'utf8')
expect(unifiedOrders).not.toContain('InboundCodeRelationshipDrawer')
expect(unifiedOrders).not.toContain('InboundCodeRelationshipDialog')