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:
1 parent
abc781df52
commit
2c4c771269
10 files changed
+260
-323
No files matched your search
@@ -151,8 +151,11 @@ test.describe('editor access, narrow screens and axe', () => {
|
||||
await openFinding(page, dict, 'Constat A')
|
||||
await expectAccessible(page, `the finding dialog at ${width} px`)
|
||||
await showCitations(page)
|
||||
await expectNoHorizontalOverflow(page, `the sheet at ${width} px`)
|
||||
await expectAccessible(page, `the citations sheet at ${width} px`)
|
||||
await expectNoHorizontalOverflow(
|
||||
page,
|
||||
`the references dialog at ${width} px`,
|
||||
)
|
||||
await expectAccessible(page, `the references dialog at ${width} px`)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -193,8 +196,8 @@ test.describe('editor access, narrow screens and axe', () => {
|
||||
await openFinding(page, dict, 'Constat A')
|
||||
await expectAccessible(page, 'the finding dialog (edit)')
|
||||
await showCitations(page)
|
||||
await expectNoHorizontalOverflow(page, 'the citations sheet at 1 024 px')
|
||||
await expectAccessible(page, 'the citations sheet (edit)')
|
||||
await expectNoHorizontalOverflow(page, 'the references dialog at 1 024 px')
|
||||
await expectAccessible(page, 'the references dialog (edit)')
|
||||
await closeCitations(page, dict)
|
||||
await closeFinding(page, dict)
|
||||
})
|
||||
@@ -223,6 +226,6 @@ test.describe('editor access, narrow screens and axe', () => {
|
||||
await openFinding(page, dict, 'Constat A')
|
||||
await expectAccessible(page, 'the finding dialog (read-only)')
|
||||
await showCitations(page)
|
||||
await expectAccessible(page, 'the citations sheet (read-only)')
|
||||
await expectAccessible(page, 'the references dialog (read-only)')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user