test(editor): e2e on the references dialog instead of the sheet

Helpers citationsDialog, closeCitations by the dialog's ✕. Owner journey
with tap at 375, keyboard and axe; geometry checks now dialog in viewport
with focus inside; refused « Tout afficher » over a dirty form.
This commit is contained in:
bchanot committed 2026-11-15 16:15:43 +01:00
1 parent abc781df52
commit 2c4c771269
10 files changed
+260 -323

No files matched your search

+3 -3
View File
@@ -195,7 +195,7 @@ test.describe('deselect and D6b (editor, mouse and keyboard)', () => {
expect(saves).toEqual([])
})
test('Escape: canvas, field, delete dialog, citations panel, tracing', async ({
test('Escape: canvas, field, delete dialog, references dialog, tracing', async ({
page,
requests,
}) => {
@@ -226,8 +226,8 @@ test.describe('deselect and D6b (editor, mouse and keyboard)', () => {
await expect(dialog).toHaveCount(0)
await expectKept(page, POINT)
// The citations sheet (over the finding dialog over Constats): Escape closes the
// sheet only, a second one the dialog, the selection stays, back on Annotations a
// The references dialog (over the finding dialog over Constats): Escape closes it
// only, a second one the finding dialog, the selection stays, back on Annotations a
// third Escape deselects.
await openCitations(page, dict, 'Constat A')
await page.keyboard.press('Escape')