From 1ed1013f6b91a76d4ec91e6afa014a3007681129 Mon Sep 17 00:00:00 2001 From: "adeel.tajamul" Date: Thu, 19 May 2022 17:55:00 +0500 Subject: [PATCH] fix: change votes to likes in search filter --- src/discussions/posts/PostsView.test.jsx | 4 ++-- src/discussions/posts/post-filter-bar/messages.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/discussions/posts/PostsView.test.jsx b/src/discussions/posts/PostsView.test.jsx index b3b8d877..2ebcca01 100644 --- a/src/discussions/posts/PostsView.test.jsx +++ b/src/discussions/posts/PostsView.test.jsx @@ -155,7 +155,7 @@ describe('PostsView', () => { test('test that the filter bar works', async () => { // 3 type filters: all, discussion, question // 5 status filters: any, unread, following, reported, unanswered - // 3 sort: activity, comments, votes + // 3 sort: activity, comments, likes expect(screen.queryAllByRole('radio')).toHaveLength(11); }); @@ -189,7 +189,7 @@ describe('PostsView', () => { queryParam: { order_by: 'comment_count' }, }, { - label: 'Most votes', + label: 'Most likes', queryParam: { order_by: 'vote_count' }, }, ])( diff --git a/src/discussions/posts/post-filter-bar/messages.js b/src/discussions/posts/post-filter-bar/messages.js index 00d56172..27dc13de 100644 --- a/src/discussions/posts/post-filter-bar/messages.js +++ b/src/discussions/posts/post-filter-bar/messages.js @@ -78,7 +78,7 @@ const messages = defineMessages({ }, voteCount: { id: 'discussions.posts.sort.voteCount', - defaultMessage: 'Most votes', + defaultMessage: 'Most likes', description: 'Option in dropdown to sort posts by most votes', }, sortFilterStatus: {