 
   rename: (browser) ->
 
-    user         = helpers.beginTest(browser)
+    user = helpers.beginTest(browser)
+
+    helpers.waitForVMRunning(browser)
+
     filename     = helpers.createFile(browser, user)
     webPath      = '/home/' + user.username + '/Web'
     fileSelector = "span[title='" + webPath + '/' + filename + "']"


  splitPanesUndo: (browser) ->

    helpers.splitPanesUndo(browser)
    browser.end()


  undoSplitPanesNotShowOnList: (browser) ->

    helpers.splitPanesUndo(browser)

    browser

  splitPanesHorizontally: (browser) ->

    helpers.beginTest(browser)
    helpers.waitForVMRunning(browser)

    browser
      .waitForElementVisible '.panel-1', 20000
