#learner-elements-test
1 messages · Page 1 of 1 (latest)
Basic tests to begin with like are all three Stripe elements getting rendered. Followed by validation and other functional tests
Since Stripe elements load in an iframe, wondering how would we test the rendering stuff using Jest to begin with
You can't interact with them programmatically, so after the react elements are present in the app I would suggest not testing the underlying secure iframe bits with jest -- that part would be for manual test flows and for automated tests you'd use our test cards/tokens and skip that step.