       .scrollToElement scrollElement
       .waitForElementVisible selector('role', 1), 20000
       .click selector('role', 1), ->
-        myteamhelpers.checkTeammates browser, invitations[0], nthItem(1), nthItem(2), selector('role', 1), no, ->
+        teamsHelpers.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, ->
+            teamsHelpers.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, ->
+                teamsHelpers.checkTeammates browser, invitations[lastPendingInvitationIndex], nthItem(1), nthItem(2), selector('role', lastPendingInvitationIndex + 1), yes, ->
                   browser
                     .waitForElementNotPresent selector('fullname', lastPendingInvitationIndex + 1), 20000
                     .end()

    browser
      .url myTeamLink, (result) ->
        if result.status is 0
          myteamhelpers.inviteUsers browser, invitations, (res) ->
            myteamhelpers.acceptAndJoinInvitation host, browser, invitations[indexOfTargetUser1], (res) ->
              myteamhelpers.acceptAndJoinInvitation host, browser, invitations[indexOfTargetUser2], (res) ->
                myteamhelpers.acceptAndJoinInvitation host, browser, invitations[indexOfTargetUser3], (res) ->
                  browser
                    .url myTeamLink
                    .waitForElementVisible section, 20000

      .setValue teamNameSelector, 'random'
      .click saveChangesButton

    teamsHelpers.assertConfirmation browser, successMessage
    browser
      .clearValue teamNameSelector
      .setValue teamNameSelector, user.teamSlug
      .click saveChangesButton

    teamsHelpers.assertConfirmation browser, successMessage

    browser.end()

