wait a bit after tree-view:move specs

This commit is contained in:
Corey Johnson
2013-01-31 16:02:25 -08:00
parent a7531c1341
commit 801283d022

View File

@@ -761,7 +761,7 @@ describe "TreeView", ->
expect(addDialog.miniEditor.getText().length).toBe 0
describe "tree-view:move", ->
fdescribe "tree-view:move", ->
describe "when a file is selected", ->
moveDialog = null
@@ -770,6 +770,9 @@ describe "TreeView", ->
treeView.trigger "tree-view:move"
moveDialog = rootView.find(".tree-view-dialog").view()
afterEach ->
waits 50 # The move specs cause too many false positives because of their async nature, so wait a little bit before we cleanup
it "opens a move dialog with the file's current path (excluding extension) populated", ->
extension = fs.extension(filePath)
fileNameWithoutExtension = fs.base(filePath, extension)