docs: function trimActions(actions) {
    // TODO: maybe, instead of doing this, add a last screenshot here. It's
    // mostly due to mistakes
    var lastScreenshotIndex = _.findLastIndex(actions, function(a) {
      return a.action === consts.STEP_SCREENSHOT;
    });
    return actions.slice(0, lastScreenshotIndex + 1);
  }