Merge branch 'release/test' of http://git.buggoglobal.com/html/admin-web into release/test

This commit is contained in:
2026-09-03 11:13:38 +08:00
17 changed files with 1127 additions and 44 deletions
@@ -321,6 +321,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')