How to check range of id's in Table material ui in cypress?

299 Views Asked by At

I got this testing in Table Material ui React. And I have to check the values in each row?

<Table>
   <TableHead>
        <TableRow>
             <TableCell>ID</TableCell>
             <TableCell>Customer</TableCell>
             <TableCell>Age</Table>
        </TableRow>
   </TableHead>
   <TableBody>
    {row.map((items, index) => (
        <TableRow key={index}> 
           <TableCell> {items.id} </TableCell>
           <TableCell> {items.customer} </TableCell>
           <TableCell> {items.age} </TableCell>
        </TableRow>
    ))}
   </TableBody>
</Table> 

One of my problem is I have to check if the customer_id that was search are range from 200 to 300, need to verify if all that was retrieve in the list dashboard filters only in that range.

Thanks.

0

There are 0 best solutions below