优化
This commit is contained in:
@@ -156,8 +156,8 @@ describe('LastMileOrderDetailView domestic detail alignment', () => {
|
||||
expect(createLastMileOrderFee).toHaveBeenCalledWith('internal-order-id', expect.objectContaining({ feeItemCode: 'FEE_TYPE_077', amount: 80 }))
|
||||
})
|
||||
|
||||
it('creates a return order fee without charging quantity or unit inputs', async () => {
|
||||
vi.mocked(getLastMileOrder).mockResolvedValue({ order: { id: 'internal-order-id', customerId: 'customer-1', orderNo: 'RT-1', orderType: 'RETURN_RELABEL', currentStatus: 'INBOUND_COMPLETED' }, cargo: [], fees: [], statusHistory: [], operationHistory: [] })
|
||||
it.each(['RETURN_RELABEL', 'WAREHOUSE_TRANSFER'])('creates a %s fee without charging quantity or unit inputs', async orderType => {
|
||||
vi.mocked(getLastMileOrder).mockResolvedValue({ order: { id: 'internal-order-id', customerId: 'customer-1', orderNo: 'RT-1', orderType, currentStatus: 'INBOUND_COMPLETED' }, cargo: [], fees: [], statusHistory: [], operationHistory: [] })
|
||||
const { dialog } = await openFeeEditor()
|
||||
expect(dialog.text()).not.toContain('计费数量')
|
||||
expect(dialog.text()).not.toContain('计费单位')
|
||||
|
||||
Reference in New Issue
Block a user