My question is simple: which differences are there between using either of these methods:
cy.get('.wtv').find('.sub-wtv');
cy.get('.wtv').within(() => {cy.get('.sub-wtv');});
From the documentation
https://docs.cypress.io/api/commands/find.html
https://docs.cypress.io/api/commands/within.html
they both let us work with a "sub DOM" in which we can do whatever we would like, like searching a specific element and assert it.
It seems to me that this may be almost as an alias of each other?!
Can someone clarify this for me? Or point me in the right direction?
Also, performance wise, is one of them better than the other?
I do understand that they may have different implementations, but the input and output aren't the same for both?