         .waitForElementVisible editNamebutton, 20000
         .click editNamebutton
         .clearValue stackTemplateNameArea
-        .pause 1000
+        .pause 3000
+        .setValue stackTemplateNameArea, ''
         .setValue stackTemplateNameArea, 'NewStackName'
         .click saveButtonSelector, ->
           browser.pause 3000, ->

  reinitializeTeamStack: (browser, done) ->
    browser
      .waitForElementVisible '.StackEditor-ShareModal.kdmodal footer', 20000
      .click shareButton
      .waitForElementVisible '.ContentModal.content-modal main', 20000
      .click shareButton, ->

    wrongCustomVariable    = "foo: '"
    correctCustomVariable  = "foo: 'bar'"

    @gotoStackTemplate browser, =>
      browser.waitForElementVisible stackTemplateNameArea, 2000
      @switchTabOnStackCatalog browser, 'variables'
