#learner-elements-test

1 messages · Page 1 of 1 (latest)

compact schooner
#

Not that I'm aware of -- what exactly are you trying to test?

queen crag
#

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

compact schooner
#

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.