Description
I'm not entirely sure how to report this will enough since i'm under NDA, but i was on the latest v8 and just upgraded to the latest (9.0.0). Cypress version is 12.1.0. Everything working as expected with v8, but i noticed v9 was out and supported Cypress v12, so thought i'd give it a go and i just wanted to report the issues in case it helps. I'm sorry that i can't give anything reproducible just yet, but if i get chance, i will.
This is a FANTASTIC library by the way.
Possibly an important point is that we are using { testIsolation: false }
in our tests?
cypress-testing-library
version: 9.0.0node
version: 16.17.0npm
(oryarn
) version: 8.15.0
Relevant code or config
Examples that seem to be an issue have included these two commands. That doesn't mean that each time we call the commands they fail. It looks like they work ok in one test, but then in a following test (part of the same test suite) and not in isolation, the same call errors, as shown in the screenshot.
cy.findByRole('navigation', { name: /^(?!config-navigation|breadcrumb)/ });
cy.findbyrole('button', { name: 'add' }).click();
and our tests are scaffolded like this
description('testing feature a', { testIsolation: false }, () => {
test('should do this', () => {
});
test('should also do this', () => {
});
});
What you did:
Upgraded to the latest version of the library
What happened:
Reproduction repository:
Problem description:
Suggested solution: