 utils   = require '../utils/utils.js'
 helpers = require '../helpers/helpers.js'
 
-changePasswordHelper = (browser, newPassword1, newPassword2, notificationText, callback) ->
+changePasswordHelper = (browser, newPassword1, newPassword2, currentPassword, notificationText, callback) ->
 
   inputSelector         = '.password input.text'
   modalSelector         = '.AppModal-form'



module.exports =

  editFirstName: (browser) ->


    browser
      .waitForElementVisible   passwordModalSelector , 20000
      .waitForElementVisible   passwordModalSelector + ' input[name=password]', 20000
      .setValue                passwordModalSelector + ' input[name=password]', currentPassword, =>
        browser
          .click                   passwordModalSelector + ' button[type=submit]'
          .waitForElementVisible   '.kdnotification.main', 20000
