This commit is contained in:
2026-08-17 11:23:31 +08:00
parent f41eaa05a3
commit c6fa22c1b5
3 changed files with 14 additions and 1 deletions
@@ -316,6 +316,13 @@ describe('InboundMeasurementPanel', () => {
expect(wrapper.emitted('changed')).toHaveLength(1)
})
it('emits updated without closing the parent task after manual carton entry', async () => {
const wrapper = await mountPanel()
const source = await import('./InboundMeasurementPanel.vue?raw').then((module) => module.default)
expect(source).toContain("emit('updated')")
expect(wrapper.emitted('updated')).toBeUndefined()
})
it('blocks normal submission when confirmed box counts do not match the order total', async () => {
vi.mocked(getInboundMeasurement).mockResolvedValueOnce(measurement({ originalPackageCount: 12 }))
const wrapper = await mountPanel()