Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/discussions/learners/LearnersView.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe('LearnersView', () => {
renderComponent();
});

expect(screen.queryByText('learner-1')).toBeInTheDocument();
expect(screen.queryByText('Learner-1')).toBeInTheDocument();
});

test('Most activity should be selected by default for the non-moderator role.', async () => {
Expand Down Expand Up @@ -176,7 +176,7 @@ describe('LearnersView', () => {
const learners = await container.querySelectorAll('.discussion-post');
const firstLearner = learners.item(0);
const learnerAvatar = firstLearner.querySelector('[alt=learner-1]');
const learnerTitle = within(firstLearner).queryByText('learner-1');
const learnerTitle = within(firstLearner).queryByText('Learner-1');
const stats = firstLearner.querySelectorAll('.icon-size');

expect(learners).toHaveLength(3);
Expand Down
3 changes: 2 additions & 1 deletion src/discussions/learners/learner/LearnerCard.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useContext } from 'react';

import capitalize from 'lodash/capitalize';
import { Link } from 'react-router-dom';

import { Routes } from '../../../data/constants';
Expand Down Expand Up @@ -39,7 +40,7 @@ const LearnerCard = ({ learner }) => {
<div
className="text-truncate font-weight-500 text-primary-500 font-style"
>
{username}
{capitalize(username)}
</div>
</div>
{threads !== null && (
Expand Down