Skip to content

Commit

Permalink
Instant Debits: small PR fixes for UI tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaidis-stripe committed May 24, 2024
1 parent ac9463e commit f28b588
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,10 @@ extension PlaygroundController {
// "set_shipping_address": true // Uncomment to make server vend PI with shipping address populated
] as [String: Any]
if let supportedPaymentMethods = settingsToLoad.supportedPaymentMethods {
body["supported_payment_methods"] = supportedPaymentMethods.split(separator: ",")
body["supported_payment_methods"] = supportedPaymentMethods
.trimmingCharacters(in: .whitespacesAndNewlines)
.split(separator: ",")
.map({ $0.trimmingCharacters(in: .whitespacesAndNewlines) })
}
makeRequest(with: checkoutEndpoint, body: body) { data, response, error in
// If the completed load state doesn't represent the current state, reload again
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3427,7 +3427,7 @@ extension PaymentSheetUITestCase {
)
)
// at this point, we searched "Test Institution"
// and the only search result is "Test Instiuttion,"
// and the only search result is "Test Institution,"
// so here we guess that 80 pixels below search bar
// there will be a "Test Institution"
//
Expand Down

0 comments on commit f28b588

Please sign in to comment.