chore: restores memory db

This commit is contained in:
James
2024-04-01 11:11:52 -04:00
parent 2f6a15a9ae
commit f230d55031
4 changed files with 7 additions and 7 deletions

View File

@@ -32,8 +32,8 @@ export async function initPayloadE2E({ config, dirname }: Args): Promise<Result>
// @ts-expect-error
process.env.NODE_ENV = 'test'
// const configWithMemoryDB = await startMemoryDB(config)
const payload = await getPayloadHMR({ config })
const configWithMemoryDB = await startMemoryDB(config)
const payload = await getPayloadHMR({ config: configWithMemoryDB })
const port = 3000
process.env.PORT = String(port)

View File

@@ -330,7 +330,7 @@ describe('versions', () => {
const newDescription = 'new description'
await page.goto(autosaveURL.create)
await page.waitForURL(`**/${autosaveURL.create}`)
await page.waitForURL(autosaveURL.create)
await page.waitForURL(/\/(?!create$)[\w-]+$/)
const titleField = page.locator('#field-title')
const descriptionField = page.locator('#field-description')