chore: overhauls admin navigation (#3339)

This commit is contained in:
Jacob Fletcher
2023-09-15 17:33:28 -04:00
committed by GitHub
parent 055c65f229
commit 85c8e4dc65
107 changed files with 1871 additions and 1740 deletions

View File

@@ -13,7 +13,7 @@ import type {
import payload from '../../packages/payload/src'
import { mapAsync } from '../../packages/payload/src/utilities/mapAsync'
import wait from '../../packages/payload/src/utilities/wait'
import { saveDocAndAssert } from '../helpers'
import { openDocControls, saveDocAndAssert } from '../helpers'
import { AdminUrlUtil } from '../helpers/adminUrlUtil'
import { initPayloadE2E } from '../helpers/configHelpers'
import {
@@ -222,7 +222,8 @@ describe('fields - relationship', () => {
test('should duplicate document with relationships', async () => {
await page.goto(url.edit(docWithExistingRelations.id))
await page.locator('.btn.duplicate').first().click()
await openDocControls(page)
await page.locator('#action-duplicate').click()
await expect(page.locator('.Toastify')).toContainText('successfully')
const field = page.locator('#field-relationship .relationship--single-value__text')