     browser.execute fn, params
 
 
-  fillJoinForm: (browser, userData, assertLoggedIn = yes) ->
+  fillJoinForm: (browser, userData, assertLoggedIn = yes, callback = -> ) ->
 
     loginForm     = '.TeamsModal.TeamsModal--groupCreation.join'
     emailInput    = "#{loginForm} input[name=email]"

      .waitForElementVisible  'form.login-form', 20000
      .setValue               'input[name=username]', user.username
      .setValue               'input[name=password]', user.password
      .click                  'button[testpath=login-button]'

    @loginAssertion(browser)


  loginTeam: (browser, invalidCredentials = no) ->

    user               = utils.getUser()
    url                = helpers.getUrl(yes)

      .waitForElementVisible modalSelector, 20000
      .click                 '.TeamsModal-button-link a'
      .pause                 2000
      .waitForElementVisible modalSelector, 20000
      .pause                 2000
      .click                 '.TeamsModal-button-link a'
      .pause                 2000
