       .waitForElementVisible    '.kdmodal-inner', 20000 # Assertion
       .end()
 
+
+  # forgotPasswordWwithEmailConfirmation: (browser) ->  #yarim kaldi
+
+  #   user  = helpers.doRegister(browser)
+
+  #   email = user.email
+
+  #   browser.execute 'KD.isTesting = true;'
+  #   browser
+  #     .waitForElementVisible  '[testpath=main-header]', 50000
+  #     .click                  '#main-header [testpath=login-link]'
+  #     .waitForElementVisible  '.forgot-link', 50000
+  #     .click                  '.forgot-link'
+  #     .waitForElementVisible  '.login-input-view', 20000
+  #     .setValue               '.login-input-view', email
+  #     .click                  '.login-form button'
+  #     .end()


  registerWithInvalidPassword: (browser) ->

    user = utils.getUser()
    user.password = '123456'

    helpers.attemptEnterEmailAndUsernameOnRegister(browser, user)


  registerWithInvalidEmail: (browser) ->

    user = utils.getUser(yes)
    user.email = 'r2d2.kd.io'

    helpers.attemptEnterEmailAndUsernameOnRegister(browser, user)
