优化
This commit is contained in:
@@ -135,7 +135,7 @@ describe('smart dispatch three-column cargo board', () => {
|
||||
expect(wrapper.emitted('changePage')).toEqual([[2]])
|
||||
expect(wrapper.get('[aria-label="托盘明细"]').text()).toContain('请选择左侧订单')
|
||||
await wrapper.setProps({ page: 2, candidates: [candidate({ orderNo: 'NEXT-PAGE', palletNo: 'NEXT-PALLET' })] })
|
||||
expect(wrapper.get('[aria-label="待排订单"]').text()).toContain('货物分页,同一订单可能分布在多页')
|
||||
expect(wrapper.get('[aria-label="待排订单"]').text()).not.toContain('货物分页,同一订单可能分布在多页')
|
||||
expect(wrapper.get('[aria-label="第 1 辆车"]').text()).toContain('PALLET-1')
|
||||
expect(wrapper.findAll('[aria-label="车辆装载"] article')).toHaveLength(2)
|
||||
})
|
||||
@@ -174,7 +174,8 @@ describe('smart dispatch three-column cargo board', () => {
|
||||
slots: { vehicles: ({ dragOver, drop }: { dragOver: (event: DragEvent, id: string) => void; drop: (event: DragEvent, id: string) => void }) => h('section', { 'aria-label': '真实本车清单', onDragover: (event: DragEvent) => dragOver(event, 'PC/1'), onDrop: (event: DragEvent) => drop(event, 'PC/1') }, 'PALLET-EXISTING') },
|
||||
global: { plugins: [ElementPlus] },
|
||||
})
|
||||
expect(wrapper.find('[aria-label="车辆装载"]').exists()).toBe(false)
|
||||
expect(wrapper.find('[aria-label="车辆装载"]').exists()).toBe(true)
|
||||
expect(wrapper.get('[aria-label="车辆装载"]').text()).not.toContain('添加车辆')
|
||||
expect(wrapper.text()).toContain('PALLET-EXISTING')
|
||||
await select(wrapper)
|
||||
const dataTransfer = transfer()
|
||||
|
||||
Reference in New Issue
Block a user