Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should not exist does not work with findByRole #265

Open
tam-R opened this issue Oct 16, 2023 · 0 comments
Open

should not exist does not work with findByRole #265

tam-R opened this issue Oct 16, 2023 · 0 comments

Comments

@tam-R
Copy link

tam-R commented Oct 16, 2023

  • cypress-testing-library version: 10.0.1
  • node version: 18.0.1
  • npm (or yarn) version: 10.2.0

Relevant code or config

cy.findByRole('tab', {name: 'ForDeleteRegularRole'}).should('not.exist')

Problem description:

It seems that the should not exist assertion does not properly work for findByRole.
It retried the assertion and returned an AssertionError in the end due to the element not being found.

Timed out retrying after 120000ms: Unable to find an accessible element with the role "tab" and name "ForDeleteRegularRole"

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant