fix(editor): final review round, history, dialogs, Plus and limits
I1 scroll restored at once on a Back into layers; I2 Aller a opens the target dialog in one push; M1-M9, criteria 8 and 17 (left-draft notice), entry caps, no exhaustive-deps disables, locals within 5.
This commit is contained in:
1 parent
ce171427c0
commit
6bf9290da7
25 files changed
+1002
-202
No files matched your search
@@ -231,3 +231,18 @@ describe('the platform back request', () => {
|
||||
expect(more()).toHaveAttribute('aria-expanded', 'false')
|
||||
})
|
||||
})
|
||||
|
||||
describe('final review: keyboard focus leaving « Plus » (M-8)', () => {
|
||||
it('closes when the focus moves out of the trigger and the list', async () => {
|
||||
const { user } = mount()
|
||||
await user.click(more())
|
||||
const item = screen.getByRole('button', { name: 'Constats' })
|
||||
act(() => item.focus())
|
||||
expect(more()).toHaveAttribute('aria-expanded', 'true')
|
||||
act(() => more().focus())
|
||||
expect(more()).toHaveAttribute('aria-expanded', 'true')
|
||||
act(() => screen.getByRole('button', { name: 'outside' }).focus())
|
||||
expect(more()).toHaveAttribute('aria-expanded', 'false')
|
||||
await gone()
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user