#santiagoavila - Automation Testing
1 messages · Page 1 of 1 (latest)
yes
Okay, I'm not aware of any specific recommendations but let me take a look
Okay I found our recommendation. Unfortunately we need to lock down the contents of the <iframe> and do not support testing of the elements loaded within that frame. We don't recommend testing the rendered elements because we do change these element IDs, class strings, and other attributes without notification. The right approach is to use test tokens (https://stripe.com/docs/testing) and stub out the elements you are trying to test.
So, instead to test the element, I have to send information on a token object, to simulate the behavior of the form?
You can both pass the token object it the API calls as well as use the test card numbers to manually input data into the elements. I know it's not the ideal scenario (or even general best practice) but the way we design the iframe comes with some restrictions
ok. Thank you! I'll review that, and will come again if have troubles with that