cauldron
cauldron copied to clipboard
test: switch options menu tests to react testing library
Issue #1159
This PR switches the Options Menu tests to React Testing Library.
Validation steps
- Run yarn test
- See that there are coverage percentages in the table
- Verify that the tests are converted properly
This pull request is automatically being deployed by Amplify Hosting (learn more).
Access this pull request here: https://pr-1461.d15792l1n26ww3.amplifyapp.com
Hi @scurker
I encountered some challenges getting it to cooperate seamlessly with the delegated events and click outside listener. Despite various attempts, I couldn't resolve it. I strongly advocate for testing in a full browser environment with UI testing, as I believe it's entirely feasible to test this functionality. Therefore, I've omitted the test events and click outside listener from this test.
@lsprr thanks for your work here! I've taken this over and moved the commits over to #1543, so closing this PR