From 37c41a26c97e0a2fda80998fbb3594fa03b6b6dc Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Thu, 23 Mar 2017 12:11:15 -0700 Subject: Adding a last message id for selenium testing (#5840) --- webapp/components/post_view/components/post.jsx | 2 ++ webapp/components/post_view/components/post_body.jsx | 6 +++++- webapp/components/post_view/components/post_list.jsx | 1 + webapp/components/post_view/components/post_message_container.jsx | 4 +++- webapp/components/post_view/components/post_message_view.jsx | 4 +++- 5 files changed, 14 insertions(+), 3 deletions(-) (limited to 'webapp') diff --git a/webapp/components/post_view/components/post.jsx b/webapp/components/post_view/components/post.jsx index fba4ce9eb..645724467 100644 --- a/webapp/components/post_view/components/post.jsx +++ b/webapp/components/post_view/components/post.jsx @@ -283,6 +283,7 @@ export default class Post extends React.Component { post={post} currentUser={this.props.currentUser} sameRoot={this.props.sameRoot} + isLastPost={this.props.isLastPost} parentPost={parentPost} handleCommentClick={this.handleCommentClick} compactDisplay={this.props.compactDisplay} @@ -305,6 +306,7 @@ Post.propTypes = { sameUser: React.PropTypes.bool, sameRoot: React.PropTypes.bool, hideProfilePic: React.PropTypes.bool, + isLastPost: React.PropTypes.bool, isLastComment: React.PropTypes.bool, shouldHighlight: React.PropTypes.bool, displayNameType: React.PropTypes.string, diff --git a/webapp/components/post_view/components/post_body.jsx b/webapp/components/post_view/components/post_body.jsx index 8b650423f..eb1159987 100644 --- a/webapp/components/post_view/components/post_body.jsx +++ b/webapp/components/post_view/components/post_body.jsx @@ -163,7 +163,10 @@ export default class PostBody extends React.Component { className={postClass} > {loading} - + ); @@ -208,6 +211,7 @@ PostBody.propTypes = { currentUser: React.PropTypes.object.isRequired, parentPost: React.PropTypes.object, retryPost: React.PropTypes.func, + isLastPost: React.PropTypes.bool, handleCommentClick: React.PropTypes.func.isRequired, compactDisplay: React.PropTypes.bool, previewCollapsed: React.PropTypes.string, diff --git a/webapp/components/post_view/components/post_list.jsx b/webapp/components/post_view/components/post_list.jsx index d95d68120..10dad8a72 100644 --- a/webapp/components/post_view/components/post_list.jsx +++ b/webapp/components/post_view/components/post_list.jsx @@ -331,6 +331,7 @@ export default class PostList extends React.Component {