mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Focus the root TextEditorElement in spec instead of component node
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
@@ -1537,7 +1537,7 @@ describe "TextEditorComponent", ->
|
||||
|
||||
it "transfers focus to the hidden input", ->
|
||||
expect(document.activeElement).toBe document.body
|
||||
componentNode.focus()
|
||||
wrapperNode.focus()
|
||||
expect(document.activeElement).toBe wrapperNode
|
||||
expect(wrapperNode.shadowRoot.activeElement).toBe inputNode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user