From 52a4e5c94c497a8d5b181ddfad6bdb7e447d60e0 Mon Sep 17 00:00:00 2001
From: Awais Ansari <79941147+awais-ansari@users.noreply.github.com>
Date: Thu, 18 Dec 2025 18:34:51 +0500
Subject: [PATCH] fix: cohort name difference in filter and post view (#844)
---
src/components/FilterBar.jsx | 2 +-
src/discussions/posts/PostsView.test.jsx | 6 ++----
src/discussions/posts/post-filter-bar/PostFilterBar.jsx | 2 +-
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/components/FilterBar.jsx b/src/components/FilterBar.jsx
index da5b9427..c3eb08d6 100644
--- a/src/components/FilterBar.jsx
+++ b/src/components/FilterBar.jsx
@@ -175,7 +175,7 @@ const FilterBar = ({
diff --git a/src/discussions/posts/PostsView.test.jsx b/src/discussions/posts/PostsView.test.jsx
index 8e5f0108..7aaad221 100644
--- a/src/discussions/posts/PostsView.test.jsx
+++ b/src/discussions/posts/PostsView.test.jsx
@@ -1,5 +1,3 @@
-import React from 'react';
-
import { fireEvent, render, screen } from '@testing-library/react';
import MockAdapter from 'axios-mock-adapter';
import { act } from 'react-dom/test-utils';
@@ -232,7 +230,7 @@ describe('PostsView', () => {
test('test that the cohorts filter works', async () => {
await act(async () => {
- fireEvent.click(screen.getByLabelText('Cohort 1'));
+ fireEvent.click(screen.getByLabelText('cohort 1'));
});
dropDownButton = screen.getByRole('button', {
@@ -280,7 +278,7 @@ describe('PostsView', () => {
queryParam: { group_id: undefined },
},
{
- label: 'Cohort 1',
+ label: 'cohort 1',
queryParam: { group_id: 'cohort-1' },
},
])(
diff --git a/src/discussions/posts/post-filter-bar/PostFilterBar.jsx b/src/discussions/posts/post-filter-bar/PostFilterBar.jsx
index f601cb04..3daae3c0 100644
--- a/src/discussions/posts/post-filter-bar/PostFilterBar.jsx
+++ b/src/discussions/posts/post-filter-bar/PostFilterBar.jsx
@@ -165,7 +165,7 @@ const PostFilterBar = () => {