Cypress · Middle · Question 62 of 77

How do you test a third-party payment iframe in Cypress?

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.

Further reading

Problem with a question

Cypress · Middle · question 62

Test yourself

Take the Cypress · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz