 
     browser
       .waitForElementVisible    sidebarSectionsSelector, 20000
-      .moveToElement            sidebarSectionsSelector, 100, 7
+      .moveToElement            sidebarSectionsHeaderSelector, 100, 7
       .pause                    2000 # wait for side bar channel list
 
     if plus

companyNameSelector     = '.login-form input[testpath=company-name]'
sidebarSectionsSelector = '.activity-sidebar .SidebarSections'
chatItem                = '.Pane-body .ChatList .ChatItem'

module.exports =


    followChannelBox          = '.ChannelThreadPane-body .FollowChannelBox'

    browser
      .waitForElementVisible     channelHeaderPaneSelector, 20000
      .waitForElementVisible     buttonSelector, 20000
      .click                     buttonSelector
      .waitForElementVisible     channelActionsSelector, 20000
      .moveToElement             leaveChannelSelector, 70, 12
      .waitForElementVisible     leaveChannelSelector, 20000
      .click                     leaveChannelSelector
      .waitForElementVisible     followChannelBox, 20000 # Assertion
      .waitForElementNotVisible  chatInputSelector, 20000 # Assertion


  joinChannel: (browser) ->

    followChannelBox    = '.FollowChannelBox'
    followChannelButton = "#{followChannelBox} .Button-followChannel"

    @leaveChannel(browser)

