I've been using TestCafé a lot. So far I find it very very useful and easy to understand thanks to the amazing docs and your help guys. So thanks for that.
I have yet another question though.
I'm trying to check a table cell.
The steps are like this:
- I create a client in a modal. I close the modal
- The new client gets inserted in a table
- I have to paginate through that table until I found that client
So far what I have is this:
let found = false;
const tableRows = await clientsPage.clientsTableRows;
for (const row of tableRows)
const customerName = await row.find('td.row-0');
const text = await customerName.innerText;
found = true;
I cannot retry this code because the site I'm testing is broken atm but the last time I tried, the console.log didn't print. Is this the right approach? Or should I use ClientFunctions to check DOM state?
If I were to try this different approach:
const tableRows = clientsPage.clientsTableRows;
Is there a way I can try that "expect" for every page I paginate?
Thanks a lot!