         .setValue               activitySelector + activityInputSelector, editedPost
         .click                  activitySelector + ' .done-button'
         .pause                  1000 # below element is not found without pause
-        .waitForElementVisible  activitySelector + ' .has-markdown code', 2000
+        .waitForElementVisible  activitySelector + ' .has-markdown code', 20000
         .assert.containsText    activitySelector + ' .has-markdown code', editedCode
 
     if editImage

        .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
        .assert.containsText    activitySelector + ' .comment-container .listview-wrapper .title', 'Google'



      .click                    activitySelector + ' .settings-menu-wrapper'
      .waitForElementVisible    '.edit-post .kdview', 3000
      .click                    '.edit-post .kdview'
      .waitForElementVisible    activitySelector + ' .done-button', 20000
      .clearValue               activitySelector + activityInputSelector

    if editWithCode
