 
     user = teamsHelpers.loginTeam browser
     browser.url myTeamLink
-    myteamhelpers.newInviteFromResendModal browser, 'member'
+    teamsHelpers.newInviteFromResendModal browser, 'member'
     browser.pause 5000
-    myteamhelpers.newInviteFromResendModal browser, 'admin'
+    teamsHelpers.newInviteFromResendModal browser, 'admin'
     browser.end()
 
 

      .scrollToElement scrollElement
      .waitForElementVisible selector('role', 1), 20000
      .click selector('role', 1), ->
        myteamhelpers.checkTeammates browser, invitations[0], nthItem(1), nthItem(2), selector('role', 1), no, ->
          browser.waitForElementVisible selector('role', 1), 20000
          browser.click selector('role', 2), ->
            myteamhelpers.checkTeammates browser, invitations[1], nthItem(1), nthItem(2), selector('role', 2), no, ->
              browser.expect.element(selector('role', index + 1)).text.to.contain 'Owner'
              browser.click selector('role', lastPendingInvitationIndex + 1), ->
                myteamhelpers.checkTeammates browser, invitations[lastPendingInvitationIndex], nthItem(1), nthItem(2), selector('role', lastPendingInvitationIndex + 1), yes, ->
                  browser
                    .waitForElementNotPresent selector('fullname', lastPendingInvitationIndex + 1), 20000
                    .end()


    user = teamsHelpers.loginTeam browser
    browser.url myTeamLink
    teamsHelpers.inviteAll browser
    browser.end()


