test(tests): typed draft before Escape in the add e2e, prettier on C4 spec

This commit is contained in:
bchanot committed 2026-11-13 14:49:18 +01:00
1 parent 94f8a8bf27
commit 346a8fd8f1
2 files changed
+78 -22

No files matched your search

@@ -452,7 +452,9 @@ test.describe('reference tiles, search, sort and add', () => {
await expect(headers(page)).toHaveCount(count)
await expect(add).toBeFocused()
expect(await states()).toEqual(before)
// A typed draft, then Escape on the type select (not a text target): it cancels.
await add.click()
await root.getByLabel(dict['editor.reference.citation']).fill('Brouillon')
await type.focus()
await page.keyboard.press('Escape')
await expect(draft).toHaveCount(0)