feat: 完成后台联调与通用列表组件
This commit is contained in:
@@ -6,8 +6,11 @@ import { useAuthStore } from '@/stores/auth'
|
||||
import PermissionsView from './PermissionsView.vue'
|
||||
|
||||
vi.mock('@/api/platformIam', () => ({
|
||||
changePlatformPermissionStatus: vi.fn(),
|
||||
createPlatformPermission: vi.fn(),
|
||||
deletePlatformPermission: vi.fn(),
|
||||
listPlatformPermissions: vi.fn(),
|
||||
updatePlatformPermission: vi.fn(),
|
||||
}))
|
||||
|
||||
const permission: PlatformPermissionResource = {
|
||||
@@ -65,8 +68,8 @@ describe('PermissionsView IAM mode', () => {
|
||||
await flushPromises()
|
||||
|
||||
expect(listPlatformPermissions).toHaveBeenCalledTimes(1)
|
||||
expect(wrapper.text()).toContain('权限资源列表和新增已接入 IAM')
|
||||
expect(wrapper.text()).toContain('一期真实资源仅使用菜单和按钮类型')
|
||||
expect(wrapper.text()).toContain('权限资源维护已接入 IAM')
|
||||
expect(wrapper.text()).toContain('系统内置资源不可修改')
|
||||
})
|
||||
|
||||
it('shows a recoverable state when the permission list fails', async () => {
|
||||
|
||||
Reference in New Issue
Block a user