feat(next,ui): improves loading states (#6434)

This commit is contained in:
Jacob Fletcher
2024-05-29 14:01:13 -04:00
committed by GitHub
parent 043a91d719
commit 92f458dad2
94 changed files with 987 additions and 885 deletions

View File

@@ -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()