优化
This commit is contained in:
@@ -142,6 +142,18 @@ enableAutoUnmount(afterEach)
|
||||
afterAll(() => vi.unstubAllGlobals())
|
||||
|
||||
describe('LocationsView', () => {
|
||||
it('uses bordered striped tables and explicit semantic row actions', () => {
|
||||
expect(locationsSource).toContain('border')
|
||||
expect(locationsSource).toContain('stripe')
|
||||
expect(locationsSource).toContain('size="small" plain type="primary"')
|
||||
expect(locationsSource).toMatch(/size="small"\s+plain\s+:type=/)
|
||||
expect(locationsSource).toMatch(/size="small"\s+plain\s+type="danger"/)
|
||||
expect(locationsSource).toContain('<Eye :size="15" />')
|
||||
expect(locationsSource).toContain('<Pencil :size="15" />')
|
||||
expect(locationsSource).toContain('<Power :size="15" />')
|
||||
expect(locationsSource).toContain('<Trash2 :size="15" />')
|
||||
expect(locationsSource).toContain('@media (max-width: 720px)')
|
||||
})
|
||||
it('uses the prototype-sized centered editor while retaining the detail drawer', () => {
|
||||
expect(locationsSource).toContain("drawerMode.value === 'view' ? AppDrawer : AppDialog")
|
||||
expect(locationsSource).toContain("width: 'min(560px, calc(100vw - 28px))'")
|
||||
|
||||
Reference in New Issue
Block a user