diff --git a/app/components/common_post_options/copy_permalink_option/copy_permalink_option.tsx b/app/components/common_post_options/copy_permalink_option/copy_permalink_option.tsx
index 43205ba4a..36c915a61 100644
--- a/app/components/common_post_options/copy_permalink_option/copy_permalink_option.tsx
+++ b/app/components/common_post_options/copy_permalink_option/copy_permalink_option.tsx
@@ -35,7 +35,7 @@ const CopyPermalinkOption = ({teamName, post, sourceScreen}: Props) => {
defaultMessage='Copy Link'
onPress={handleCopyLink}
iconName='link-variant'
- testID='post_options.copy.permalink.option'
+ testID='post_options.copy_permalink.option'
/>
);
};
diff --git a/app/components/common_post_options/follow_thread_option/follow_thread_option.tsx b/app/components/common_post_options/follow_thread_option/follow_thread_option.tsx
index b6b32a946..5e0bef45d 100644
--- a/app/components/common_post_options/follow_thread_option/follow_thread_option.tsx
+++ b/app/components/common_post_options/follow_thread_option/follow_thread_option.tsx
@@ -52,11 +52,13 @@ const FollowThreadOption = ({thread, teamId}: FollowThreadOptionProps) => {
dismissBottomSheet(Screens.POST_OPTIONS);
};
+ const followThreadOptionTestId = thread.isFollowing ? 'post_options.following_thread.option' : 'post_options.follow_thread.option';
+
return (
diff --git a/app/components/common_post_options/reply_option.tsx b/app/components/common_post_options/reply_option.tsx
index 4d941396a..fc912f733 100644
--- a/app/components/common_post_options/reply_option.tsx
+++ b/app/components/common_post_options/reply_option.tsx
@@ -31,7 +31,7 @@ const ReplyOption = ({post, location}: Props) => {
defaultMessage='Reply'
iconName='reply-outline'
onPress={handleReply}
- testID='post_options.reply.post.option'
+ testID='post_options.reply_post.option'
/>
);
};
diff --git a/app/components/common_post_options/save_option.tsx b/app/components/common_post_options/save_option.tsx
index 2083efb5e..406f28a07 100644
--- a/app/components/common_post_options/save_option.tsx
+++ b/app/components/common_post_options/save_option.tsx
@@ -33,7 +33,7 @@ const SaveOption = ({isSaved, postId}: CopyTextProps) => {
defaultMessage={defaultMessage}
iconName='bookmark-outline'
onPress={onHandlePress}
- testID={`post_options.${defaultMessage.toLocaleLowerCase()}.channel.option`}
+ testID={`post_options.${defaultMessage.toLocaleLowerCase()}_post.option`}
/>
);
};
diff --git a/app/components/post_list/post/footer/footer.tsx b/app/components/post_list/post/footer/footer.tsx
index 5dc3d62ac..932347817 100644
--- a/app/components/post_list/post/footer/footer.tsx
+++ b/app/components/post_list/post/footer/footer.tsx
@@ -20,7 +20,6 @@ import type UserModel from '@typings/database/models/servers/user';
type Props = {
participants: UserModel[];
teamId?: string;
- testID: string;
thread: ThreadModel;
};
@@ -77,7 +76,7 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => {
};
});
-const Footer = ({participants, teamId, testID, thread}: Props) => {
+const Footer = ({participants, teamId, thread}: Props) => {
const serverUrl = useServerUrl();
const theme = useTheme();
const styles = getStyleSheet(theme);
@@ -102,7 +101,7 @@ const Footer = ({participants, teamId, testID, thread}: Props) => {
{
{
{location !== SEARCH && commentCount > 0 &&
{commentCount}
diff --git a/app/components/post_list/post/post.tsx b/app/components/post_list/post/post.tsx
index c255c6dde..7d0b5bc72 100644
--- a/app/components/post_list/post/post.tsx
+++ b/app/components/post_list/post/post.tsx
@@ -294,15 +294,12 @@ const Post = ({
if (isCRTEnabled && thread) {
if (thread.replyCount > 0 || thread.isFollowing) {
footer = (
-
+