import { mount } from '@vue/test-utils'
import PermissionsView from '../PermissionsView.vue'

describe('PermissionsView', () => {
  it('renders role headers and permission labels', () => {
    const wrapper = mount(PermissionsView)

    expect(wrapper.text()).toContain('权限矩阵')
    expect(wrapper.text()).toContain('管理员')
    expect(wrapper.text()).toContain('运营')
    expect(wrapper.text()).toContain('只读')
    expect(wrapper.text()).toContain('活动查看')
  })
})
