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

cy.findByText doesn't work on Cypress 13.6.4 in some situations #273

Open
DawidJanczak opened this issue Feb 15, 2024 · 2 comments
Open

Comments

@DawidJanczak
Copy link

  • cypress-testing-library version: 10.0.1
  • node version: 18.12.0
  • npm (or yarn) version: 1.22.19

Relevant code or config

cy.findByText('some text').should('exist')

What you did:

Ran the snippet above

What happened:

Running the above crashes with

TypeError: Cannot set property message of  which has only a getter
  at $Cy.eval (webpack://cypress-deps/./node_modules/@testing-library/cypress/dist/index.js:51:0)

This happens consistently on Cypress 13.6.4, works fine on Cypress 13.6.3. Furthermore it only happens in one spec - we use it in other places and it works just fine there.

I'm not really sure what this error means, would appreciate some help.

Reproduction repository:

Problem description:

Suggested solution:

@DawidJanczak
Copy link
Author

This may have been a regression in 13.6.4 because things work fine in 13.6.5 it seems, closing this.

@DawidJanczak
Copy link
Author

This still happens so I'm reopening. The problem is that it happens very sporadically.

@DawidJanczak DawidJanczak reopened this Mar 6, 2024
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