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
@@ -167,8 +167,11 @@ describe('focus requests', () => {
|
||||
focus={request({ kind: 'reference', id: 'ref-a' })}
|
||||
/>,
|
||||
)
|
||||
expect(document.activeElement?.getAttribute('data-focus-key')).toContain(
|
||||
'ref-a',
|
||||
// The landing waits for any dialog a move closed: one microtask when none is open.
|
||||
await waitFor(() =>
|
||||
expect(document.activeElement?.getAttribute('data-focus-key')).toContain(
|
||||
'ref-a',
|
||||
),
|
||||
)
|
||||
cleanup()
|
||||
render(
|
||||
@@ -434,8 +437,10 @@ describe('a consumed request', () => {
|
||||
await openReady({ text })
|
||||
const user = userEvent.setup()
|
||||
render(<Harness />)
|
||||
expect(document.activeElement?.getAttribute('data-focus-key')).toContain(
|
||||
'ref-a',
|
||||
await waitFor(() =>
|
||||
expect(document.activeElement?.getAttribute('data-focus-key')).toContain(
|
||||
'ref-a',
|
||||
),
|
||||
)
|
||||
await user.click(screen.getByText('switch'))
|
||||
await user.click(screen.getByText('switch'))
|
||||
|
||||
Reference in new issue
Block a user