test(app): browser journeys of the four-tab editor shell

New specs editor-shell-{journeys,crossing,layout}: four tabs, cross-tab
undo, typed text then header undo, Shift+Tab to Annuler with a refused field,
Ctrl+Z in and out of a field, Aller a per issue kind, save line states,
every kept part across a 1 024 px crossing, drag across it, confirmations
closing, withheld decision, widths, axe, keyboard order, canvas widths with
and without the panel; equine commit-to-paint with every place visited.

R-24 mapping: editor-shell B2b `:focus` count 0 after the crossing is now
focus on #editor-tab-annotations (focus goes to the shown tab, not body).
Prettier re-wrapped two Lot F lines in editor-shell.spec.ts; no assertion
changed there.
This commit is contained in:
bchanot committed 2026-11-08 20:23:40 +01:00
1 parent 0bb150f860
commit a474ddaa40
6 files changed
+1002 -4

No files matched your search

+26
View File
@@ -344,6 +344,32 @@ test.describe('equine working copy and commit latency', () => {
expect(line.handler.max, line.handler.max + ' ms').toBeLessThan(BUDGET_MS)
})
test('commit-to-paint on the equine copy with every place visited (U1 shell)', async ({
page,
requests,
}) => {
test.setTimeout(180_000)
expect(copyId).not.toBe('')
requests.forbid(actor.account.email, actor.account.password)
await signIn(page, actor.account, dict)
await page.goto('/app/admin')
await stepUpAdmin(page, dict, actor.secret)
await page.goto(`/app/admin/sheets/${copyId}/draft`)
await expect(toolButton(page, dict, 'point')).toBeEnabled()
// Every tab, section and the panel mounted once: all of them stay mounted (B2a).
for (const tab of ['general', 'findings', 'verification'])
await selectTab(page, dict, tab)
for (const section of SECTIONS) await openSection(page, dict, section)
await openReferences(page, dict)
await closeReferences(page, dict)
const renames = await measureRenames(page, 'equine, all places: rename')
const additions = await measureAdditions(page, 'equine, all places: add')
for (const line of [renames, additions])
expect(line.paint.max, `${line.paint.max} ms to paint`).toBeLessThan(
BUDGET_MS,
)
})
test('commit latency on a synthetic document near 2 MiB', async ({
page,
requests,