Skip to content

Commit 3206922

Browse files
Awais  AnsariAwais  Ansari
authored andcommitted
test: fix cohort test cases
1 parent 415fc47 commit 3206922

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/discussions/posts/PostsView.test.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react';
2-
31
import { fireEvent, render, screen } from '@testing-library/react';
42
import MockAdapter from 'axios-mock-adapter';
53
import { act } from 'react-dom/test-utils';
@@ -232,7 +230,7 @@ describe('PostsView', () => {
232230

233231
test('test that the cohorts filter works', async () => {
234232
await act(async () => {
235-
fireEvent.click(screen.getByLabelText('Cohort 1'));
233+
fireEvent.click(screen.getByLabelText('cohort 1'));
236234
});
237235

238236
dropDownButton = screen.getByRole('button', {
@@ -280,7 +278,7 @@ describe('PostsView', () => {
280278
queryParam: { group_id: undefined },
281279
},
282280
{
283-
label: 'Cohort 1',
281+
label: 'cohort 1',
284282
queryParam: { group_id: 'cohort-1' },
285283
},
286284
])(

0 commit comments

Comments
 (0)