feat : add Table component #113
Annotations
2 errors
Run bun run coverage:
src/components/Progress/Progress.test.tsx#L40
TestingLibraryElementError: Found multiple elements with the role "region" and name "Task List"
Here are the matching elements:
Ignored nodes: comments, script, style
<section
aria-labelledby="problem-list"
>
<h2
id="problem-list"
>
Task List
</h2>
<ul>
<li>
<span>
Longest Consecutive Sequence
</span>
<span>
Med.
</span>
</li>
<li>
<span>
Two Sum
</span>
<span>
Easy
</span>
</li>
<li>
<span>
Binary Tree Paths
</span>
<span>
Easy
</span>
</li>
<li>
<span>
Clone Graph
</span>
<span>
Med.
</span>
</li>
</ul>
</section>
Ignored nodes: comments, script, style
<section
aria-labelledby="problem-list"
class="_problemList_e5fb97"
>
<table
class="_table_5bbf24"
>
<thead>
<tr>
<th
aria-label="Problem Title"
class="_problemHeading_5bbf24"
scope="col"
>
Problem
</th>
<th
aria-label="Problem Difficulty"
class="_difficultyHeading_5bbf24"
scope="col"
>
Difficulty
</th>
<th
aria-label="Problem Completion Status"
class="_statusHeading_5bbf24"
scope="col"
>
Status
</th>
</tr>
</thead>
<tbody>
<tr>
<td
class="_problemData_5bbf24"
>
128
.
Longest Consecutive Sequence
</td>
<td
class="_difficultyData_5bbf24 _medium_5bbf24"
>
Med.
</td>
<td
aria-label="Completed"
class="_statusData_5bbf24"
>
<svg
aria-hidden="true"
aria-label="Completed problem"
fill="none"
height="14"
viewBox="0 0 18 14"
width="18"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M6.1136 13.725L0.263593 7.62349C-0.0878643 7.25692 -0.0878643 6.66256 0.263593 6.29596L1.53636 4.96843C1.88781 4.60182 2.4577 4.60182 2.80915 4.96843L6.75 9.07869L15.1908 0.274927C15.5423 -0.0916425 16.1122 -0.0916425 16.4636 0.274927L17.7364 1.60246C18.0879 1.96903 18.0879 2.56338 17.7364 2.92998L7.3864 13.7251C7.0349 14.0916 6.46506 14.0916 6.1136 13.725Z"
fill="#846DE9"
/>
</svg>
</td>
</tr>
<tr>
<td
class="_problemData_5bbf24"
>
1
.
Two Sum
</td>
<td
class="_difficultyData_5bbf24 _easy_5bbf24"
>
Easy
</td>
<td
aria-label="Completed"
class="_statusData_5bbf24"
>
<svg
aria-hidden="true"
aria-label="Completed problem"
fill="none"
height="14"
viewBox="0 0 18 14"
width="18"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M6.1136 13.725L0.263593 7.62349C-0.0878643 7.25692 -0.0878643 6.66256 0.263593 6.29596L1.53636 4.96843C1.88781 4.60182 2.4577 4.60182 2.80915 4.96843L6.75 9.07869L15.1908 0.274927C15.5423 -0.0916425 16.1122 -0.0916425 16.4636 0.274927L17.7364 1.60246C18.0879 1.96903 18.0879 2.56338 17.7364 2.92998L7.3864 13.7251C7.0349 14.0916 6.46506 14.0916 6.1136 13.725Z"
fill="#846DE9"
/>
</svg>
</td>
</tr>
<tr>
<td
class="_problemData_5bbf24"
>
257
.
Binary Tree Paths
</td>
<td
class="_difficultyData_5bbf24 _easy_5bbf24"
>
Easy
</td>
<td
aria-label="Incomplete"
class="_statusData_5bbf24"
>
<svg
aria-hidden="true"
aria-label="Incomplete problem"
fill="none"
height="15"
|
Run bun run coverage
Process completed with exit code 1.
|
Loading