test(editor): lot K review fixes, filled-document save proof
This commit is contained in:
1 parent
bb99edd2dd
commit
4cc27a8231
10 files changed
+132
-32
No files matched your search
@@ -8,8 +8,13 @@
|
||||
import { chromium, type FullConfig } from '@playwright/test'
|
||||
import { fr } from '@/i18n/fr'
|
||||
import { stepUpAdmin } from './admin'
|
||||
import { draftPath, editorActor, seedDraft, standardShape } from './editor'
|
||||
import { routeToSandbox } from './sandbox'
|
||||
import {
|
||||
draftPath,
|
||||
editorActor,
|
||||
secondSession,
|
||||
seedDraft,
|
||||
standardShape,
|
||||
} from './editor'
|
||||
import { signIn } from './shell'
|
||||
|
||||
const TABS = [
|
||||
@@ -27,9 +32,7 @@ export default async function warmUp(config: FullConfig): Promise<void> {
|
||||
const actor = await editorActor('fr')
|
||||
const seed = await seedDraft(actor, { shape: standardShape })
|
||||
const browser = await chromium.launch()
|
||||
const context = await browser.newContext({ baseURL, locale: 'fr-FR' })
|
||||
await routeToSandbox(context)
|
||||
const page = await context.newPage()
|
||||
const { page } = await secondSession(browser, baseURL, 'fr-FR')
|
||||
await signIn(page, actor.account, fr)
|
||||
await page.goto('/app/admin')
|
||||
await stepUpAdmin(page, fr, actor.secret)
|
||||
|
||||
Reference in new issue
Block a user