优化
This commit is contained in:
@@ -180,4 +180,13 @@ describe('ContainersView', () => {
|
||||
previous = current
|
||||
}
|
||||
})
|
||||
|
||||
it('renders container business actions as buttons without changing the transport gate', () => {
|
||||
const source = readFileSync(resolve(process.cwd(), 'src/modules/container-loading/pages/ContainersView.vue'), 'utf8')
|
||||
expect(source).toContain('size="small" type="primary" plain :aria-label="containerViewLabel')
|
||||
expect(source).toContain("row.planStatus === 'LOADING' ? '录入集装箱号' : '编辑'")
|
||||
expect(source).toContain("row.planStatus === 'EDITING' && canSmartLoading")
|
||||
expect(source).not.toContain('canSmartLoading && row.containerNo')
|
||||
expect(source).not.toContain('link type="primary" :aria-label="containerViewLabel')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user