I am trying to count the number of children returned when doing
cy.xpath(NODE_PREVIEW_PANEL).children('data-testid')
So that I can use the count to pass all the values into an array sequentially avoiding the async of .each()
function.
How can I get the count of children here?
(or you can suggest a totally different solution)