feat(next,ui): improves loading states (#6434)
This commit is contained in:
@@ -170,12 +170,12 @@ describe('access control', () => {
|
||||
|
||||
test('should not have list url', async () => {
|
||||
await page.goto(restrictedUrl.list)
|
||||
await expect(page.locator('.unauthorized')).toBeVisible()
|
||||
await expect(page.locator('.not-found')).toBeVisible()
|
||||
})
|
||||
|
||||
test('should not have create url', async () => {
|
||||
await page.goto(restrictedUrl.create)
|
||||
await expect(page.locator('.unauthorized')).toBeVisible()
|
||||
await expect(page.locator('.not-found')).toBeVisible()
|
||||
})
|
||||
|
||||
test('should not have access to existing doc', async () => {
|
||||
@@ -321,13 +321,12 @@ describe('access control', () => {
|
||||
name: 'unrestricted-123',
|
||||
},
|
||||
})
|
||||
|
||||
await page.goto(unrestrictedURL.edit(unrestrictedDoc.id.toString()))
|
||||
|
||||
const field = page.locator('#field-userRestrictedDocs')
|
||||
await expect(field.locator('input')).toBeEnabled()
|
||||
const addDocButton = page.locator(
|
||||
'#userRestrictedDocs-add-new button.relationship-add-new__add-button.doc-drawer__toggler',
|
||||
)
|
||||
|
||||
await addDocButton.click()
|
||||
const documentDrawer = page.locator('[id^=doc-drawer_user-restricted-collection_1_]')
|
||||
await expect(documentDrawer).toBeVisible()
|
||||
|
||||
Reference in New Issue
Block a user