kentcdodds / jest-cypress-react-babel-webpack

Configure Jest for Testing JavaScript Applications and Install, Configure, and Script Cypress for JavaScript Web Applications on TestingJavaScript.com
https://testingjavascript.com
Other
512 stars 329 forks source link

Remove excess chaining #31

Closed nekhaevskiy closed 4 years ago

nekhaevskiy commented 4 years ago

When I chain each command in the test (cypress@4.3.0 and @testing-library/cypress@5.3.1), I get the error message in the browser console: Error: @testing-library/cypress will eventually only use previous subjects when queries are added to a chain of commands. We've detected an instance where the this functionality failed, but the old functionality passed (so your test may break in a future version). Please use cy.findByText(/^1$/) instead of continuing from a previous chain.

kentcdodds commented 4 years ago

Hi @nekhaevskiy,

While this is a problem with the latest versions, the videos were recorded with a previous version where this worked and I want to keep this consistent with the recorded version.

I do plan to update the videos eventually and these branches will get updated at that time.

Thanks!