提交
This commit is contained in:
@@ -277,6 +277,22 @@ describe('InboundMeasurementPanel', () => {
|
||||
expect(payload).not.toHaveProperty('originalVolumeCbm')
|
||||
})
|
||||
|
||||
it('saves all three warehouse outer dimensions against the measured sequence', async () => {
|
||||
const wrapper = await mountPanel()
|
||||
expect(wrapper.text()).toContain('001')
|
||||
await wrapper.find('input[aria-label="仓库修改外箱长"]').setValue('55')
|
||||
await wrapper.find('input[aria-label="仓库修改外箱宽"]').setValue('45')
|
||||
await wrapper.find('input[aria-label="仓库修改外箱高"]').setValue('35')
|
||||
const save = wrapper.findAll('button').find((button) => button.text().includes('保存测量数据'))
|
||||
await save?.trigger('click')
|
||||
await flushPromises()
|
||||
|
||||
const payload = vi.mocked(saveInboundMeasurementDraft).mock.calls[0]?.[2]
|
||||
expect(payload?.items[0]).toMatchObject({
|
||||
itemNo: '001', outerLengthCm: 55, outerWidthCm: 45, outerHeightCm: 35,
|
||||
})
|
||||
})
|
||||
|
||||
it('updates the server weight summary without discarding unsaved measurement edits', async () => {
|
||||
const wrapper = await mountPanel()
|
||||
const countInput = wrapper.find('.measurement-count-editor input')
|
||||
|
||||
Reference in New Issue
Block a user