feat: roles SPA foundations
This commit is contained in:
1 parent
80f7037d3a
commit
907949aa12
180 files changed
+4308
-835
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { accessFor } from '@/test/access'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { flushPromises } from '@vue/test-utils'
|
||||
import { MOBILE_WIDTH } from '@/components/__tests__/viewport'
|
||||
@@ -243,7 +244,7 @@ describe('Dismiss x: behaviour', () => {
|
||||
|
||||
it.each(['owner', 'admin', 'verified'] as const)('is available to the %s', async (role) => {
|
||||
const backend = backendWithDismissals()
|
||||
backend.me.role = role === 'verified' ? undefined : role
|
||||
backend.me.access = accessFor(role)
|
||||
await mountSeo(backend)
|
||||
const panel = await openPanel()
|
||||
|
||||
|
||||
Reference in new issue
Block a user