Love the convenience of Apple Pay. PITA to test. Which you could say about pretty much anything iOS-related, but I digress. QA Wolf now supports test cases with Apple Pay and Apple Wallet.
Tests run on real iPhones in our own device cloud. You can even test with a real credit card. A major electric car manufacturer uses one in their Apple Pay checkout test. Their checkout passes Stripe a test key, so Stripe returns a successful payment, but the card isn't actually charged.
How it works
Confirming the payment is one call in the test, device.confirmApplePay():
import { device } from "@qawolf/flows/ios";
// Tap Apple Pay in your checkout
await driver.$('//XCUIElementTypeButton[contains(@name, "Pay")]').click();
// Confirm on the Apple Pay sheet, with nobody holding the phone
await device.confirmApplePay(driver);
// Then check the order confirmation in your app or site
Payments go through your payment provider's test mode or Apple's sandbox, so no real money moves. A Wallet test can add a pass, like a ticket or a loyalty card, to Apple Wallet and check that it shows up.