fix(editor): edit mode focuses the draft, tile edit call
This commit is contained in:
1 parent
6c0f913104
commit
5059641c04
4 files changed
+43
-3
No files matched your search
@@ -202,6 +202,14 @@ describe('the « Modifier » of the references dialog', () => {
|
||||
expect(inCitations().queryByRole('button', { name: 'Aller à' })).toBeNull()
|
||||
})
|
||||
|
||||
it('puts the focus on the first control of the draft', async () => {
|
||||
const user = await mount()
|
||||
await editCitations(user)
|
||||
const active = document.activeElement
|
||||
expect(active).not.toBe(document.body)
|
||||
expect(active?.closest('form[data-draft-form]')).not.toBeNull()
|
||||
})
|
||||
|
||||
it('is not offered read only (below 1 024 px)', async () => {
|
||||
const user = await mount(900)
|
||||
await openCitations(user)
|
||||
|
||||
Reference in new issue
Block a user