Skip to content

Commit

Permalink
fix: the missing role and unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyasMandlik committed Aug 8, 2023
1 parent a852f05 commit 92672c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion frontend/src/components/home/LeaderBoard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ describe("should render the leaderBoard component", () => {
expect(leaderBoardContainer2).toBeInTheDocument();
expect(table).toBeInTheDocument();
expect(table).toHaveTextContent("Email");
expect(table).toHaveTextContent("Rank");
expect(table).toHaveTextContent("Role");
expect(table).toHaveTextContent("Credits");
});
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/components/home/LeaderBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const LeaderBoard = () => {
<h1 data-testid="leaderBoardTitle" className="courseHeading">
Leader Board
</h1>
<div className="courseContainer" data-testid="container2">
<div className="courseContainer" data-testid="container2" role="leaderBoard">
<table data-testid="container2 table" className="courseTable">
<thead className="courseTableHead" data-testid="tableHeading">
<tr>
Expand All @@ -188,9 +188,8 @@ const LeaderBoard = () => {
return (
<tr
key={index}
className={`${
index % 2 === 1 ? "bg-gray-100" : "bg-white"
}`}
className={`${index % 2 === 1 ? "bg-gray-100" : "bg-white"
}`}
role="row"
>
<td className="courseTableRows">{index + 1}</td>
Expand Down

0 comments on commit 92672c3

Please sign in to comment.