feat: live preview (#3382)

This commit is contained in:
Jacob Fletcher
2023-10-02 11:40:08 -04:00
committed by GitHub
parent ec0f5a77b7
commit a53cbd146f
79 changed files with 2173 additions and 12 deletions

View File

@@ -0,0 +1,31 @@
import type { Page } from '@playwright/test'
import { expect, test } from '@playwright/test'
import { AdminUrlUtil } from '../helpers/adminUrlUtil'
import { initPayloadE2E } from '../helpers/configHelpers'
import { startLivePreviewDemo } from './startLivePreviewDemo'
const { beforeAll, describe } = test
let url: AdminUrlUtil
describe('Live Preview', () => {
let page: Page
beforeAll(async ({ browser }) => {
const { serverURL, payload } = await initPayloadE2E(__dirname)
url = new AdminUrlUtil(serverURL, 'posts')
const context = await browser.newContext()
page = await context.newPage()
await startLivePreviewDemo({
payload,
})
})
test('example test', async () => {
await page.goto(url.list)
await expect(true).toBe(true)
})
})