This commit is contained in:
2026-09-03 21:25:56 +08:00
parent 3ac2dc807f
commit c20ee82def
15 changed files with 242 additions and 85 deletions
@@ -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: '单位名称'")