fix(ui): proper permissions within version diff view (#9346)
Fixes #9337. The version view was not able to render its diff because of an invalid permissions lookup. This was a result of a change to how access results are returned from the API, which are now sanitized: https://github.com/payloadcms/payload/pull/7335
This commit is contained in:
@@ -317,6 +317,7 @@ describe('versions', () => {
|
||||
const versionID = await row2.locator('.cell-id').textContent()
|
||||
await page.goto(`${savedDocURL}/versions/${versionID}`)
|
||||
await page.waitForURL(`${savedDocURL}/versions/${versionID}`)
|
||||
await expect(page.locator('.render-field-diffs')).toBeVisible()
|
||||
await page.locator('.restore-version__button').click()
|
||||
await page.locator('button:has-text("Confirm")').click()
|
||||
await page.waitForURL(savedDocURL)
|
||||
|
||||
Reference in New Issue
Block a user