优化
This commit is contained in:
@@ -93,6 +93,12 @@ enableAutoUnmount(afterEach)
|
||||
afterAll(() => vi.unstubAllGlobals())
|
||||
|
||||
describe('PartnersView real API integration', () => {
|
||||
it('clamps long unit names with the shared component', () => {
|
||||
expect(source).toContain("LineClampText from '@/shared/components/LineClampText.vue'")
|
||||
expect(source).toContain('<LineClampText :content="(row as PlatformPartnerResource).partnerName" />')
|
||||
expect(source).not.toContain('.partner-cell strong')
|
||||
})
|
||||
|
||||
it('keeps operation first and separates the prototype contact columns', () => {
|
||||
const actionsIndex = source.indexOf("{ key: 'actions', label: '操作'")
|
||||
const nameIndex = source.indexOf("{ key: 'partner', label: '单位名称'")
|
||||
|
||||
Reference in New Issue
Block a user