mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Attach to DOM before checking visibility
This commit is contained in:
@@ -471,6 +471,8 @@ describe "CommandPanel", ->
|
||||
|
||||
describe "when a path in the preview list is clicked", ->
|
||||
it "shows and hides the matches for that path", ->
|
||||
rootView.attachToDom()
|
||||
expect(previewList.find('li.path:first-child ul.matches')).toBeVisible()
|
||||
previewList.find('li.path:first-child').mousedown()
|
||||
expect(previewList.find('li.path:first-child ul.matches')).toBeHidden()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user