test(desktop): focus list input before Enter blur

This commit is contained in:
Hukla
2026-08-24 06:09:12 +03:00
committed by brooklyn!
parent 94edc03bc2
commit b0ea14d456

View File

@@ -163,7 +163,7 @@ describe('ConfigField list editing', () => {
render(<ConfigField onChange={onChange} schema={listSchema} schemaKey="test.list" value={['first']} />)
const input = screen.getByRole('textbox') as HTMLInputElement
fireEvent.focus(input)
input.focus()
fireEvent.change(input, { target: { value: 'first, second' } })
fireEvent.keyDown(input, { key: 'Enter', code: 'Enter' })