Using @testing-library/react in Laboratory for e2e testing #582
piyalbasu
started this conversation in
Show and tell
Replies: 1 comment
-
Agree that using a more advanced feature set such as Cypress or Selenium is most likely overkill at this point in time. As we move forward with coding, a "Best Practices" doc in this repo would be useful. Not sure if that would go here in the Discussions or in a README in the test folder, or something similar. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem:
We're in dire need of e2e testing that we can run in CI as we ramp up Lab Modernization. We need a safety net to establish a baseline of functionality so as we make changes to the codebase, we can have confidence we're not breaking things as we make changes. Ideally, this solution should be implemented in JS, have a good/familiar API, and be able to spin up quickly.
How
@testing-library/react
Addresses Our Needs: (https://testing-library.com/docs/react-testing-library/intro/)Alternatives That We Passed On and Why:
We passed on solutions like Cypress.io or Selenium that are a bit more robust. These 2 solutions will actually open a browser and run the website, clicking on buttons and observing changes, as a real user would. These services are very useful, but:
Beta Was this translation helpful? Give feedback.
All reactions