Fixes https://github.com/payloadcms/payload/issues/6545 ### Description Correctly scopes upload edits to a single doc, previously they were stored on the top level document. - Removes formQueryParams in favor of an upload edit provider. - Hoists the document `action` up to the doc provider
30 lines
788 B
TypeScript
30 lines
788 B
TypeScript
import type { Page } from '@playwright/test'
|
|
|
|
import { expect, test } from '@playwright/test'
|
|
|
|
import { initPageConsoleErrorCatch } from '../helpers'
|
|
import { AdminUrlUtil } from '../helpers/adminUrlUtil'
|
|
import { initPayloadE2E } from '../helpers/configHelpers'
|
|
|
|
const { beforeAll, describe } = test
|
|
|
|
describe('Globals', () => {
|
|
let page: Page
|
|
let url: AdminUrlUtil
|
|
|
|
beforeAll(async ({ browser }) => {
|
|
const { serverURL } = await initPayloadE2E(__dirname)
|
|
url = new AdminUrlUtil(serverURL, 'media')
|
|
|
|
const context = await browser.newContext()
|
|
page = await context.newPage()
|
|
initPageConsoleErrorCatch(page)
|
|
})
|
|
|
|
test('can edit media from field', async () => {
|
|
await page.goto(url.create)
|
|
|
|
// const textCell = page.locator('.row-1 .cell-text')
|
|
})
|
|
})
|