优化
This commit is contained in:
@@ -146,6 +146,21 @@ describe('CustomersView', () => {
|
||||
expect(preview?.src).toBe('blob:qualification-preview')
|
||||
})
|
||||
|
||||
it('marks only the business license and legal-person ID as required qualifications', async () => {
|
||||
mount(CustomersView, { attachTo: document.body, global: { plugins: [pinia, ElementPlus] } })
|
||||
await flushPromises()
|
||||
tableButtonByText('编辑')?.click()
|
||||
await flushPromises()
|
||||
|
||||
const labels = [...document.querySelectorAll<HTMLElement>('.qualification-label')]
|
||||
expect(labels.map((label) => label.textContent?.replace(/\s/g, ''))).toEqual([
|
||||
'*营业执照',
|
||||
'*法人身份证',
|
||||
'货代资质证书选填',
|
||||
'银行开户许可证选填',
|
||||
])
|
||||
})
|
||||
|
||||
it('does not count rejected or superseded history as a current qualification when resubmitting', async () => {
|
||||
const rejectedTenant = { ...fullTenant, status: 'REJECTED' }
|
||||
vi.mocked(listPlatformTenants).mockResolvedValue({ records: [rejectedTenant], page: 1, size: 10, total: 1, pages: 1 })
|
||||
|
||||
Reference in New Issue
Block a user