chore: restores memory db
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user