feat(editor): sheet landings, history and e2e for the finding layers
« Tout afficher » clears the search and keeps the sort. A landing waits for the dialogs a move closed and for their focus restore. Helpers and shell specs move to the dialog and sheet flow; new finding dialog spec (entries, guards, flip, gone rule, Back and Forward over the layers).
This commit is contained in:
1 parent
18085cecf8
commit
4731a3376a
21 files changed
+782
-474
No files matched your search
@@ -12,17 +12,19 @@ import {
|
||||
SECTIONS,
|
||||
TABS,
|
||||
closeCitations,
|
||||
closeFinding,
|
||||
draftPath,
|
||||
draftTitle,
|
||||
editorActor,
|
||||
makeActor,
|
||||
openEditor,
|
||||
openCitations,
|
||||
openFinding,
|
||||
openSection,
|
||||
pointOf,
|
||||
seedDraft,
|
||||
selectTab,
|
||||
shapeWith,
|
||||
showCitations,
|
||||
type Actor,
|
||||
} from '../support/editor'
|
||||
import { signIn } from '../support/shell'
|
||||
@@ -146,9 +148,11 @@ test.describe('editor access, narrow screens and axe', () => {
|
||||
).toHaveCount(0)
|
||||
await expectNoHorizontalOverflow(page, `the draft at ${width} px`)
|
||||
await expectAccessible(page, `the draft at ${width} px`)
|
||||
await openCitations(page, dict, 'Constat A')
|
||||
await expectNoHorizontalOverflow(page, `the panel at ${width} px`)
|
||||
await expectAccessible(page, `the citations panel at ${width} px`)
|
||||
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`)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -186,10 +190,13 @@ test.describe('editor access, narrow screens and axe', () => {
|
||||
)
|
||||
await expectAccessible(page, `the ${section} section (edit)`)
|
||||
}
|
||||
await openCitations(page, dict, 'Constat A')
|
||||
await expectNoHorizontalOverflow(page, 'the citations panel at 1 024 px')
|
||||
await expectAccessible(page, 'the citations panel (edit)')
|
||||
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 closeCitations(page, dict)
|
||||
await closeFinding(page, dict)
|
||||
})
|
||||
|
||||
test('axe on every tab of a read-only draft', async ({ page, requests }) => {
|
||||
@@ -213,7 +220,9 @@ test.describe('editor access, narrow screens and axe', () => {
|
||||
await openSection(page, dict, section)
|
||||
await expectAccessible(page, `the ${section} section (read-only)`)
|
||||
}
|
||||
await openCitations(page, dict, 'Constat A')
|
||||
await expectAccessible(page, 'the citations panel (read-only)')
|
||||
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)')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user