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

findAllByTestId failing on versions > 5.0.2 #107

Closed
JoeEarly opened this issue Jan 30, 2020 · 1 comment
Closed

findAllByTestId failing on versions > 5.0.2 #107

JoeEarly opened this issue Jan 30, 2020 · 1 comment

Comments

@JoeEarly
Copy link

  • DOM Testing Library version: 5.1.1
  • node version: 11.4.0
  • npm (or yarn) version: npm: 6.13.1 yarn: 1.21.1

Relevant code or config:

cy.visit("/admin")
      .withConfig({})
      //.findAllByTestId("Get Started with the Building Directory app")
      .findAllByTestId("onboard-title-0")
      .should("be.visible")
      .and("contain", "Get Started")

What you did:

I am creating a set of tests here and few weeks ago this was passing fine. Now with an upgrade in package version, the 'findAllByTestId' is failing.

I rolled back versions of the cypress-testing-library so it seems this has been introduced as of Vr 5.1.1

What happened:

Screenshot 2020-01-30 at 12 01 59

Screenshot 2020-01-30 at 12 02 07

@kentcdodds
Copy link
Member

Hello @JoeEarly,

Thanks for this issue. I'm sorry, I didn't notice this until I saw #109. They are the same issue. I hope you don't mind me closing this one in favor of #109 because I've already started a discussion over there. Please weigh in on ideas if you have any. Thank you!

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

2 participants