优化
This commit is contained in:
@@ -93,10 +93,12 @@ describe('RolesView', () => {
|
||||
vi.mocked(createPlatformRole).mockReset()
|
||||
})
|
||||
|
||||
it('keeps directory, menu, and action permissions independently checkable', () => {
|
||||
it('links menu groups and permissions so partial selections use the half-checked state', () => {
|
||||
const wrapper = mountView()
|
||||
|
||||
expect(wrapper.get('[data-testid="permission-tree"]').attributes('data-check-strictly')).toBe('true')
|
||||
expect(wrapper.get('[data-testid="permission-tree"]').attributes('data-check-strictly')).toBe('false')
|
||||
expect(rolesSource).not.toContain('check-strictly')
|
||||
expect(rolesSource).not.toContain("disabled: 'disabled'")
|
||||
})
|
||||
|
||||
it('shows the role code in the default list layout', () => {
|
||||
|
||||
Reference in New Issue
Block a user