Proper way to repeat test logic in Cypress with dynamic DOM re-rendering
I am having a problem with testing my app using Cypress. Suppose I have a table with items, and I need to test that its possible to delete all the items from the table. It’s rendered using React and re-rendered after some item being deleted. DOM looks something like this: