You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading the docs I understand that getReact searches only among the descendants of the resq node passed by the previous command. So for example cy.getReact('A').getReact('B') should search for B only among A's descendants. I got this right?
If yes, I added this test to calculator.spec.js, which is failing
it('getReact should search only among descendants of the resq node passed by the previous command', () => {
cy.getReact('t')
.nthNode(2)
.getReact('t')
.nthNode(9)
.getProps('name')
.should('eq', '5');
});
It should get the element at index 2, then among its descendants get the element at index 9 (the button '5'). Instead it gets the button '9', as if the second getReact searched for elements starting from the root component.
The text was updated successfully, but these errors were encountered:
Reading the docs I understand that getReact searches only among the descendants of the resq node passed by the previous command. So for example
cy.getReact('A').getReact('B')
should search for B only among A's descendants. I got this right?If yes, I added this test to calculator.spec.js, which is failing
It should get the element at index 2, then among its descendants get the element at index 9 (the button '5'). Instead it gets the button '9', as if the second getReact searched for elements starting from the root component.
The text was updated successfully, but these errors were encountered: