         .pause                  3500 # wait for image loading
         .click                  activitySelector + ' .submit-button'
         .refresh()              #in order for the image thumbnail to regenerate
-        .waitForElementVisible  activitySelector + ' .comment-container .listview-wrapper .title', 5000
+        .waitForElementVisible  activitySelector + ' .comment-container .listview-wrapper .title', 20000
         .assert.containsText    activitySelector + ' .comment-container .listview-wrapper .title', 'Google'
 
 

        .setValue               activitySelector + ' .comment-input-view', editedPost
        .click                  activitySelector + ' .submit-button'
        .pause                  5000 # wait for image loading
        .waitForElementVisible  activitySelector + ' .comment-container .listview-wrapper .comment-contents .comment-body-container p', 2000
        .assert.containsText    activitySelector + ' .comment-container .listview-wrapper .comment-contents .comment-body-container p', editedCode

    if editWithImage
      browser
        .setValue               activitySelector + ' .comment-input-view', imageText
        .click                  activitySelector + ' .submit-button'
        .waitForElementVisible  activitySelector + ' .comment-container .listview-wrapper .comment-contents .comment-body-container', 2000
        .refresh()              #in order for the image to resize
        .waitForElementVisible  activitySelector + ' .comment-container .listview-wrapper .comment-contents .comment-body-container', 5000

      browser.getAttribute imageSelector, 'height', (result) ->
        height = result.value

    browser
      .pause                    2000
      .click                    activitySelector + ' .comment-menu'
      .waitForElementVisible    '.edit-comment .kdview', 20000
      .click                    '.edit-comment .kdview'
      .clearValue               activitySelector + ' .comment-input-view'

