diff --git a/src/modules/container-loading/components/ContainerSimulationCreate.test.ts b/src/modules/container-loading/components/ContainerSimulationCreate.test.ts index 63ad7007..be4dbf3f 100644 --- a/src/modules/container-loading/components/ContainerSimulationCreate.test.ts +++ b/src/modules/container-loading/components/ContainerSimulationCreate.test.ts @@ -27,14 +27,12 @@ describe('ContainerSimulationCreate opted-in form', () => { await flushPromises() expect(createContainerSimulation).not.toHaveBeenCalled() const fields = dialog.findAllComponents({ name: 'ElFormItem' }) - expect(fields).toHaveLength(4) + expect(fields).toHaveLength(3) fields.find(field => field.props('prop') === 'warehouseId')!.findComponent({ name: 'ElSelect' }).vm.$emit('update:modelValue', '8') await flushPromises() expect(listWarehouseLogisticsChannels).toHaveBeenCalledExactlyOnceWith('8') fields.find(field => field.props('prop') === 'channelGroupCode')!.findComponent({ name: 'ElSelect' }).vm.$emit('update:modelValue', 'MATSON_CLX') await flushPromises() - const specification = fields.find(field => field.props('label') === '统一规格')! - expect(specification.find('input').exists()).toBe(!dense) dialog.vm.$emit('confirm') await flushPromises() expect(createContainerSimulation).toHaveBeenCalledExactlyOnceWith({ warehouseId: '8', channelGroupCode: 'MATSON_CLX', containerType: '40HQ', capacityCbm: 68, maxWeightKg: 19500 }) diff --git a/src/modules/container-loading/components/ContainerSimulationCreate.vue b/src/modules/container-loading/components/ContainerSimulationCreate.vue index 14ef5f95..0566e828 100644 --- a/src/modules/container-loading/components/ContainerSimulationCreate.vue +++ b/src/modules/container-loading/components/ContainerSimulationCreate.vue @@ -1,7 +1,7 @@