       .pause                     5000 # wait for listing
       .waitForElementVisible     emailList, 20000
       .assert.containsText       emailList, userEmail
-
-
-  likeunlikePost: (browser, likeLikePost = no) ->
-
-    likeContainer       = '.ChatItem .SimpleChatListItem .ChatListItem-itemBodyContainer'
-    likeButtonUnpressed = "#{likeContainer} a[class~=ActivityLikeLink]:not(.is-likedByUser)"
-    likeButtonPressed   = "#{likeContainer} .ActivityLikeLink.is-likedByUser"
-    textSelector        = '.ChatListItem-itemBodyContainer:nth-of-type(1)'
-
-    browser
-      .pause                  2000
-      .waitForElementVisible  textSelector, 20000
-      .moveToElement          textSelector, 10, 10
-      .waitForElementVisible  likeButtonUnpressed, 20000
-      .click                  likeButtonUnpressed
-      .waitForElementVisible  likeButtonPressed, 20000
-      .assert.visible         likeButtonPressed
-
-    if likeLikePost
-      browser
-        .click                    likeButtonPressed
-        .waitForElementVisible    likeButtonUnpressed, 20000
-        .pause                    3000
-        .assert.elementNotPresent likeButtonPressed
-
-
-  editOrDeletePost: (browser, editPost = no, deletePost = no) ->
-
-    editedmessage       = 'Message after editing'
-    textSelector        = '.ChatItem .SimpleChatListItem.ChatItem-contentWrapper .ChatListItem-itemBodyContainer'
-    menuButton          = '.SimpleChatListItem.ChatItem-contentWrapper:nth-of-type(1) .ButtonWithMenuWrapper button'
-    editButton          = '.ButtonWithMenuItemsList li:nth-child(1)'
-    chatInput           = '.editing .ChatItem-updateMessageForm .ChatInputWidget textarea'
-    editedText          = '.ChatItem .SimpleChatListItem.edited .ChatListItem-itemBodyContainer .ChatItem-contentBody .MessageBody'
-    deleteButton        = '.ButtonWithMenuItemsList li:nth-child(2)'
-    confirmDelete       = '.Modal-DeleteItemPrompt .Modal-buttons .Button--danger'
-    deletedTextSelector = '.Pane-body .ChatList .ChatItem .SimpleChatListItem .ChatListItem-itemBodyContainer'
-
-    browser
-      .waitForElementVisible  textSelector, 20000
-      .moveToElement          textSelector, 10, 10
-      .waitForElementVisible  menuButton, 20000
-      .click                  menuButton
-
-    if editPost
-      browser
-        .waitForElementVisible  editButton, 20000
-        .click                  editButton
-        .pause                  3000 # wait for textarea
-        .waitForElementVisible  chatInput, 20000
-        .clearValue             chatInput
-        .setValue               chatInput, editedmessage
-        .setValue               chatInput, browser.Keys.ENTER
-        .waitForElementVisible  editedText, 20000
-        .pause                  2000 # wait for new text
-        .assert.containsText    editedText, editedmessage
-
-    if deletePost
-      browser
-        .waitForElementVisible     deleteButton, 20000
-        .click                     deleteButton
-        .waitForElementVisible     confirmDelete, 20000
-        .click                     confirmDelete
-        .pause                     3000 #for the text to be deleted
-        .assert.elementNotPresent  deletedTextSelector
-
-
-  updateChannelPurpose: (browser) ->
-
-    editedPurposeText  = 'edited text on the purpose field'
-    menuButtonSelector = '.ChannelThreadPane-content .ChannelThreadPane-header .ButtonWithMenuWrapper button'
-    editButtonSelector = '.ButtonWithMenuItemsList.ChannelThreadPane-menuItems li:nth-child(3)'
-    inputTextSelector  = '.ThreadHeader.ChannelThreadPane-header .ChannelThreadPane-purposeWrapper.editing input'
-    editedTextSelector = '.ChannelThreadPane-purposeWrapper .ChannelThreadPane-purpose'
-
-    browser
-      .waitForElementVisible  menuButtonSelector, 20000
-      .click                  menuButtonSelector
-      .waitForElementVisible  editButtonSelector, 20000
-      .click                  editButtonSelector
-      .waitForElementVisible  inputTextSelector, 20000
-      .clearValue             inputTextSelector
-      .setValue               inputTextSelector, editedPurposeText + browser.Keys.ENTER
-      .pause                  3000 #waiting for the text to change
-      .waitForElementVisible  editedTextSelector, 20000
-      .assert.containsText    editedTextSelector, editedPurposeText
-
-
-  createPrivateChat: (browser) ->
-
-    emptyInviteMembersInputText = '.CreateChannel-Modal .CreateChannel-content .channelName input'
-    createChatButton            = '.CreateChannel-Modal .Modal-buttons button:first-child'
-    markedAsInvalidInputText    = '.CreateChannel-content .channelName.invalid'
-
-    @moveToSidebarHeader(browser, yes)
-
-    browser
-      .waitForElementVisible  emptyInviteMembersInputText, 20000
-      .waitForElementVisible  createChatButton, 20000
-      .click                  createChatButton
-      .waitForElementVisible  markedAsInvalidInputText, 20000
-

      .waitForElementVisible  '[testpath=main-sidebar]', 20000 # Assertion

    console.log " ✔ Successfully logged in with username: #{user.username} and password: #{user.password} to team: #{helpers.getUrl(yes)}"


  setupStackPage: (browser) ->

    browser
      .waitForElementVisible  teamsModalSelector, 20000
      .waitForElementVisible  'button.TeamsModal-button--green', 20000
      .click                  'button.TeamsModal-button--green'
      .pause                  2000 # wait for modal change


  congratulationsPage: (browser) ->

    browser
      .waitForElementVisible  teamsModalSelector, 20000
      .waitForElementVisible  'button span.button-title', 20000
      .click                  'button span.button-title'
      .pause                  2000 # wait for modal change


  loginToTeam: (browser, user) ->

module.exports =


  enterTeamURL: (browser) ->

    browser
