Cypress · Middle · Question 62 of 77
How do you test a third-party payment iframe in Cypress?
- 1Payments can't be tested with Cypress at all
- 2Use test mode or stubs; run the full flow sparingly
- 3Type real card numbers into the iframe in every test
Show the answer
Correct answer: Use test mode or stubs; run the full flow sparingly
Explanation
Cross-origin iframes are hard to drive. Stubbing the payment step for most tests and one sandbox flow is a common split.