chore: fixes access control test

This commit is contained in:
James
2024-04-08 22:25:35 -04:00
parent d3016b7eb5
commit c9399efa65
2 changed files with 2 additions and 12 deletions

View File

@@ -100,7 +100,7 @@ describe('access control', () => {
beforeAll(async () => {
existingDoc = await payload.create({
collection: readOnlySlug,
collection: restrictedSlug,
data: {
name: 'name',
},
@@ -135,7 +135,7 @@ describe('access control', () => {
test('should not have access to existing doc', async () => {
await page.goto(restrictedUrl.edit(existingDoc.id))
await expect(page.locator('.unauthorized')).toBeVisible()
await expect(page.locator('.not-found')).toBeVisible()
})
})