test: wait for rows to be displayed

This commit is contained in:
Sammy Teillet
2023-04-20 18:44:43 +02:00
parent b5affcce3f
commit 3a7b1077f8
4 changed files with 76 additions and 30 deletions

View File

@ -100,8 +100,8 @@ function Table<TData>({
))}
</thead>
<tbody>
{table.getRowModel().rows.map((row) => (
<tr key={row.id}>
{table.getRowModel().rows.map((row, index) => (
<tr key={row.id} data-testid={`row-id-${row.index}`}>
{row.getVisibleCells().map((cell) => {
return (
<td key={cell.id}>