优化
This commit is contained in:
@@ -132,7 +132,7 @@ describe('ContainersView', () => {
|
||||
it('uses active customer names and sends the stable customerId filter', () => {
|
||||
const source = readFileSync(resolve(process.cwd(), 'src/modules/container-loading/pages/ContainersView.vue'), 'utf8')
|
||||
expect(source).toContain("listPlatformTenants({ page: 1, size: 200, status: 'ACTIVE' })")
|
||||
expect(source).toContain("customer.legalName?.trim() || customer.tenantName")
|
||||
expect(source).toContain("label: customer.tenantName")
|
||||
expect(source).toContain('customerId: applied.value.customerId || undefined')
|
||||
expect(source).not.toContain('customer.tenantCode')
|
||||
})
|
||||
@@ -208,7 +208,7 @@ describe('ContainersView', () => {
|
||||
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.containerNo ? '修改集装箱号' : '录入集装箱号'")
|
||||
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