       browser
         .waitForElementVisible  purposeSelector, 20000
         .setValue               purposeSelector, purpose
- 
+
     browser
       .waitForElementVisible  createChannelModalButtonSelector, 20000
       .moveToElement          createChannelModalButtonSelector, 32, 12

      .setValue               inputTextSelector, editedPurposeText + browser.Keys.ENTER
      .pause                  3000 #waiting for the text to change
      .waitForElementVisible  editedTextSelector, 20000
      .assert.containsText    editedTextSelector, editedPurposeText
        .pause                  2000 # wait for side bar channel list
        .waitForElementVisible  channelLinkOnSidebarSelector, 20000
        .assert.containsText    sidebarSectionsSelector, channelName

    if purpose
      browser.assert.containsText '.ChannelThreadPane-purposeWrapper .ChannelThreadPane-purpose',purpose

