优化
This commit is contained in:
@@ -45,6 +45,7 @@ function mountPanel(permissions: string[], mainStatus: 'WAIT_SPLIT' | 'LOADING'
|
||||
return mount(UnifiedOrderWorkflowPanel, {
|
||||
props: {
|
||||
tenantId: '2086085512165634052', inboundId: '2086085512165634051', orderId: '2086085512165634053',
|
||||
inboundCode: 'NYEXX2608300001',
|
||||
mainStatus, inboundVersion: 4,
|
||||
},
|
||||
global: { plugins: [pinia, ElementPlus] },
|
||||
@@ -61,6 +62,14 @@ describe('UnifiedOrderWorkflowPanel preload editor', () => {
|
||||
vi.mocked(voidEvidence).mockReset()
|
||||
})
|
||||
|
||||
it('uses the inbound code as the visible workflow identifier', async () => {
|
||||
const wrapper = mountPanel([])
|
||||
await flushPromises()
|
||||
expect(wrapper.text()).toContain('入库作业')
|
||||
expect(wrapper.text()).toContain('NYEXX2608300001')
|
||||
expect(wrapper.text()).not.toContain('#2086085512165634051')
|
||||
})
|
||||
|
||||
it('keeps workflow business actions as outlined semantic buttons with icons', () => {
|
||||
const source = readFileSync(resolve(process.cwd(), 'src/modules/unified-orders/workflows/components/UnifiedOrderWorkflowPanel.vue'), 'utf8')
|
||||
expect(source).toContain('size="small" plain type="primary"')
|
||||
|
||||
Reference in New Issue
Block a user