test(editor): lot K review fixes, filled-document save proof

This commit is contained in:
bchanot committed 2026-11-04 15:52:15 +01:00
1 parent bb99edd2dd
commit 4cc27a8231
10 files changed
+132 -32

No files matched your search

+5 -4
View File
@@ -1,7 +1,7 @@
import { readFile } from 'node:fs/promises'
import { join } from 'node:path'
import { fr } from '@/i18n/fr'
import type { Locator, Page, TestInfo } from '@playwright/test'
import type { Locator, Page } from '@playwright/test'
import {
rpc,
sql,
@@ -34,7 +34,6 @@ const REPO = join(__dirname, '../../../..')
const BUDGET_MS = 500
const SAMPLES = 15
const isPhone = (info: TestInfo) => info.project.name === 'chromium-375'
interface Sample {
handler: number
@@ -211,6 +210,9 @@ test.describe.configure({ mode: 'serial' })
test.describe('equine working copy and commit latency', () => {
test.use({ locale: 'fr-FR', actionTimeout: 30_000 })
// Skipped as a whole on the phone project: beforeAll and afterAll toggle the copies'
// status and must run in one worker only.
test.skip(({ isMobile }) => isMobile, 'editing needs 1 024 px')
let actor: Actor
let setAside: string[] = []
let copyId = ''
@@ -237,8 +239,7 @@ test.describe('equine working copy and commit latency', () => {
where id in (${setAside.map((id) => `'${id}'`).join(', ')})`)
})
test.beforeEach(async ({ context }, info) => {
test.skip(isPhone(info), 'editing needs 1 024 px')
test.beforeEach(async ({ context }) => {
await routeToSandbox(context)
})
test.afterEach(async ({ context }) => {