优化
This commit is contained in:
@@ -105,7 +105,7 @@ describe('GlobalSmartLoadingView', () => {
|
||||
|
||||
it('shows one user-facing container number and hides internal manual or split references', async () => {
|
||||
vi.mocked(listContainers).mockResolvedValue({
|
||||
records: [{ ...container, cabinetNo: 'CAB-20260814-01', containerNo: 'SPLIT-814022117898chain1' }],
|
||||
records: [{ ...container, cabinetNo: 'CAB-260814-0001', containerNo: 'SPLIT-814022117898chain1' }],
|
||||
page: 1,
|
||||
size: 100,
|
||||
total: 1,
|
||||
@@ -114,7 +114,7 @@ describe('GlobalSmartLoadingView', () => {
|
||||
const wrapper = mount(GlobalSmartLoadingView, { global: { plugins: [ElementPlus] } })
|
||||
await flushPromises()
|
||||
|
||||
expect(wrapper.text()).toContain('CAB-20260814-01')
|
||||
expect(wrapper.text()).toContain('CAB-260814-0001')
|
||||
expect(wrapper.text()).not.toContain('SPLIT-814022117898chain1')
|
||||
expect(wrapper.text()).not.toContain('LP-99')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user