优化
This commit is contained in:
@@ -136,7 +136,8 @@ describe('LoadingListsView', () => {
|
||||
})
|
||||
|
||||
it('uses bordered list actions with a stable 320px layout', () => {
|
||||
expect(source).toContain('size="small" type="primary" plain')
|
||||
expect(source).toContain(":class=\"{ 'density-action': isPreload }\"")
|
||||
expect(source).toContain(':type="isPreload ? undefined : \'primary\'" :plain="!isPreload"')
|
||||
expect(source).not.toContain('<el-button v-if="canView" link')
|
||||
expect(source).toContain("key: 'actions', label: '操作', fixed: 'left', width: 110")
|
||||
expect(source).toContain('flex-wrap: wrap')
|
||||
@@ -201,7 +202,7 @@ describe('LoadingListsView', () => {
|
||||
expect(detailSource).toContain('min-height: 26px')
|
||||
expect(detailSource).toContain('> div > span:first-child::after { content: ":"; }')
|
||||
expect(detailSource).not.toContain('> div > span::after { content: ":"; }')
|
||||
expect(detailSource).toContain('background: #fff')
|
||||
expect(detailSource).toContain('background: var(--admin-surface, #fff)')
|
||||
expect(detailSource).toContain('overflow-wrap: anywhere')
|
||||
expect(detailSource).toContain("className: 'identifier-column'")
|
||||
expect(detailSource).toContain('showOverflowTooltip: true')
|
||||
@@ -217,7 +218,7 @@ describe('LoadingListsView', () => {
|
||||
expect(detailSource).toContain('<section class="detail-section">')
|
||||
expect(detailSource).not.toContain('class="detail-section surface-panel"')
|
||||
expect(detailSource).not.toContain('class="history-section surface-panel"')
|
||||
expect(detailSource).toContain('padding: 16px 0 0')
|
||||
expect(detailSource).toContain('padding: var(--admin-space-6, 16px) 0 0')
|
||||
expect(detailSource).toContain("fixed: 'left', width: 132")
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user