Fix PendingGroupsRow test
This commit is contained in:
@@ -45,7 +45,7 @@ describe('<PendingGroupRows />', () => {
|
||||
|
||||
it('should not render', () => {
|
||||
renderApp(store);
|
||||
expect(screen.queryAllByTestId('pending-groups-row')).toHaveLength(0);
|
||||
expect(screen.queryAllByTestId('pending-items-row')).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -69,7 +69,7 @@ describe('<PendingGroupRows />', () => {
|
||||
|
||||
it('should not render', () => {
|
||||
renderApp(store);
|
||||
expect(screen.queryAllByTestId('pending-groups-row')).toHaveLength(0);
|
||||
expect(screen.queryAllByTestId('pending-items-row')).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -95,7 +95,7 @@ describe('<PendingGroupRows />', () => {
|
||||
renderApp(store);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(screen.queryAllByTestId('pending-groups-row')).toHaveLength(1);
|
||||
expect(screen.queryAllByTestId('pending-items-row')).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -17,7 +17,6 @@ export default () => {
|
||||
return (
|
||||
<>
|
||||
<PendingItemsRow
|
||||
data-testid='pending-groups-row'
|
||||
to='/groups/pending-requests'
|
||||
count={groups.length}
|
||||
size='lg'
|
||||
|
||||
Reference in New Issue
Block a user