Merge branch 'main' into feat/folders

This commit is contained in:
Jarrod Flesch
2025-05-02 14:37:46 -04:00
145 changed files with 2723 additions and 418 deletions

View File

@@ -6,12 +6,18 @@ import { wait } from 'payload/shared'
export async function openDocDrawer({
page,
selector,
withMetaKey = false,
}: {
page: Page
selector: string
withMetaKey?: boolean
}): Promise<void> {
let clickProperties = {}
if (withMetaKey) {
clickProperties = { modifiers: ['ControlOrMeta'] }
}
await wait(500) // wait for parent form state to initialize
await page.locator(selector).click()
await page.locator(selector).click(clickProperties)
await wait(500) // wait for drawer form state to initialize
}