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
@@ -584,7 +584,7 @@ describe('adding (P24)', () => {
|
||||
})
|
||||
|
||||
describe('the reset path (« Tout afficher »)', () => {
|
||||
it('empties the search and the sort, keeping open tiles and the tile in edit', async () => {
|
||||
it('empties the search and keeps the sort, keeping open tiles and the tile in edit (R2F-4)', async () => {
|
||||
await openReady({ text: sortText() })
|
||||
const user = userEvent.setup()
|
||||
const view = render(lib(false, { libraryReset: 0 }))
|
||||
@@ -594,7 +594,7 @@ describe('the reset path (« Tout afficher »)', () => {
|
||||
await user.type(search(), 'e')
|
||||
view.rerender(lib(false, { libraryReset: 1 }))
|
||||
expect(search()).toHaveValue('')
|
||||
expect(sortBox()).toHaveValue('sheet')
|
||||
expect(sortBox()).toHaveValue('citation')
|
||||
expect(order()).toHaveLength(5)
|
||||
expect(header('r2')).toHaveAttribute('aria-expanded', 'true')
|
||||
expect(within(item).getByLabelText('Citation')).toBeInTheDocument()
|
||||
|
||||
Reference in new issue
Block a user