fix: do not display field if read permission is false - admin panel ui (#3949)

This commit is contained in:
Jarrod Flesch
2023-11-01 10:21:19 -04:00
committed by GitHub
parent a5b2333140
commit cdc10be1a2
4 changed files with 140 additions and 51 deletions

View File

@@ -125,6 +125,14 @@ describe('access control', () => {
})
})
describe('restricted fields', () => {
test('should not show field without permission', async () => {
await page.goto(url.account)
await wait(500)
await expect(page.locator('#field-roles')).toBeHidden()
})
})
describe('read-only collection', () => {
let existingDoc: ReadOnlyCollection