 
   inviteUser: (browser) ->
 
+    teamsHelpers.loginTeam(browser)
     teamsHelpers.clickTeamSettings(browser)
     teamsHelpers.openInvitationsTab(browser)
     teamsHelpers.inviteUser(browser)


  searchPendingInvitation: (browser) ->

    teamsHelpers.clickTeamSettings(browser)
    teamsHelpers.openInvitationsTab(browser)
    browser.pause 5000 # Wait for notification
    email2 = teamsHelpers.inviteUser(browser, yes)
    teamsHelpers.clickPendingInvitations(browser, no)


  resendInvitation: (browser) ->

    teamsHelpers.loginTeam(browser)
    teamsHelpers.clickTeamSettings(browser)
    teamsHelpers.openInvitationsTab(browser)
    email = teamsHelpers.inviteUser(browser)
