diff --git a/Stripe/AllStripeFrameworks-iOS26.xctestplan b/Stripe/AllStripeFrameworks-iOS26.xctestplan index 9ad560d850d7..9ebfc4547395 100644 --- a/Stripe/AllStripeFrameworks-iOS26.xctestplan +++ b/Stripe/AllStripeFrameworks-iOS26.xctestplan @@ -33,10 +33,34 @@ }, { "selectedTests": [ + "CVCReconfirmationViewControllerSnapshotTest/testCVCRecollectionScreen()", + "FormElementSnapshotTest/testDefaultTheme()", + "LinkHintMessageViewSnapshotTests/testLongMessageWithWrapping()", + "LinkHintMessageViewSnapshotTests/testLongMessageWithWrappingErrorStyle()", + "LinkHintMessageViewSnapshotTests/testNormalLengthMessage()", + "LinkHintMessageViewSnapshotTests/testNormalLengthMessageErrorStyle()", + "LinkHintMessageViewSnapshotTests/testOutlinedStyle()", + "LinkPaymentMethodFormElementSnapshotTests/testBillingDetailsUpdate()", + "LinkPaymentMethodFormElementSnapshotTests/testBillingDetailsUpdateForBankAccount()", + "LinkPaymentMethodFormElementSnapshotTests/testBillingDetailsUpdateWithFullBillingDetails()", + "LinkPaymentMethodFormElementSnapshotTests/testBillingDetailsUpdateWithPartialBillingDetails()", + "LinkPaymentMethodFormElementSnapshotTests/testCoBrandedCard()", + "LinkPaymentMethodFormElementSnapshotTests/testDefault()", + "LinkPaymentMethodFormElementSnapshotTests/testNonDefault()", + "LinkPaymentMethodPickerSnapshotTests/testEmpty()", + "LinkPaymentMethodPickerSnapshotTests/testExpanded()", + "LinkPaymentMethodPickerSnapshotTests/testFirstOptionUnsupported()", + "LinkPaymentMethodPickerSnapshotTests/testLongEmail()", + "LinkPaymentMethodPickerSnapshotTests/testLongerEmail()", + "LinkPaymentMethodPickerSnapshotTests/testNormal()", + "LinkPaymentMethodPickerSnapshotTests/testUnsupportedBankAccount()", + "LinkPaymentMethodPickerSnapshotTests/testUnsupportedSelectedNotCollapsed()", + "LinkSignUpViewControllerSnapshotTests/testEmptyView()", + "LinkSignUpViewControllerSnapshotTests/testWithEmail()", + "PayWithLinkNewPaymentViewControllerSnapshotTests/testIsAddingFirstPaymentMethod()", + "PayWithLinkNewPaymentViewControllerSnapshotTests/testIsNotAddingFirstPaymentMethod()", "PaymentMethodTypeCollectionViewCellSnapshotTests/test_withPromoBadge()", "PaymentMethodTypeCollectionViewCellSnapshotTests/test_withPromoBadge_customAppearance()", - "PaymentSheetFlowControllerViewControllerSnapshotTests/testCVCRecollectionScreen()", - "PaymentSheetFlowControllerViewControllerSnapshotTests/testCVVRecollectionScreen()", "PaymentSheetFlowControllerViewControllerSnapshotTests/testDirectToCardScan()", "PaymentSheetFlowControllerViewControllerSnapshotTests/testNewScreen_customCTA()", "PaymentSheetFlowControllerViewControllerSnapshotTests/testSavedScreen_SEPA_debit()", @@ -47,16 +71,9 @@ "SavedPaymentOptionsViewControllerSnapshotTests/test_all_saved_pms_and_apple_pay_and_link_custom_appearance()", "SavedPaymentOptionsViewControllerSnapshotTests/test_all_saved_pms_and_apple_pay_and_link_dark()", "SavedPaymentOptionsViewControllerSnapshotTests/test_all_saved_pms_and_apple_pay_and_link_default_badge()", - "UpdatePaymentMethodViewControllerSnapshotTests/test_EmbeddedSingleCard_UpdatePaymentMethodViewControllerAppearance()", - "UpdatePaymentMethodViewControllerSnapshotTests/test_EmbeddedSingleCard_UpdatePaymentMethodViewControllerCanUpdateLightMode()", - "UpdatePaymentMethodViewControllerSnapshotTests/test_EmbeddedSingleCard_UpdatePaymentMethodViewControllerDarkMode()", - "UpdatePaymentMethodViewControllerSnapshotTests/test_EmbeddedSingleCard_UpdatePaymentMethodViewControllerLightMode()", - "UpdatePaymentMethodViewControllerSnapshotTests/test_EmbeddedSingleSEPADebit_UpdatePaymentMethodViewControllerAppearance()", - "UpdatePaymentMethodViewControllerSnapshotTests/test_EmbeddedSingleSEPADebit_UpdatePaymentMethodViewControllerDarkMode()", - "UpdatePaymentMethodViewControllerSnapshotTests/test_EmbeddedSingleSEPADebit_UpdatePaymentMethodViewControllerLightMode()", - "UpdatePaymentMethodViewControllerSnapshotTests/test_EmbeddedSingleUSBankAccount_UpdatePaymentMethodViewControllerAppearance()", - "UpdatePaymentMethodViewControllerSnapshotTests/test_EmbeddedSingleUSBankAccount_UpdatePaymentMethodViewControllerDarkMode()", - "UpdatePaymentMethodViewControllerSnapshotTests/test_EmbeddedSingleUSBankAccount_UpdatePaymentMethodViewControllerLightMode()", + "SavedPaymentOptionsViewControllerSnapshotTests/test_cvc_recollection()", + "SavedPaymentOptionsViewControllerSnapshotTests/test_cvc_recollection_dark()", + "SectionElementSnapshotTest/testDisabledState()", "UpdatePaymentMethodViewControllerSnapshotTests/test_UpdatePaymentMethodViewControllerAppearance()", "UpdatePaymentMethodViewControllerSnapshotTests/test_UpdatePaymentMethodViewControllerCanUpdateAppearance()", "UpdatePaymentMethodViewControllerSnapshotTests/test_UpdatePaymentMethodViewControllerCanUpdateExpiredCard()", @@ -97,7 +114,14 @@ "VerticalSavedPaymentMethodsViewControllerSnapshotTests/test_VerticalSavedPaymentMethodsViewControllerSnapshotTestsAppearance()", "VerticalSavedPaymentMethodsViewControllerSnapshotTests/test_VerticalSavedPaymentMethodsViewControllerSnapshotTestsLightMode()", "VerticalSavedPaymentMethodsViewControllerSnapshotTests/test_VerticalSavedPaymentOptionsViewControllerSnapshotTestsDarkMode()", - "VerticalSavedPaymentMethodsViewControllerSnapshotTests/test_VerticalSavedPaymentOptionsViewControllerSnapshotTestsDefaultBadge()" + "VerticalSavedPaymentMethodsViewControllerSnapshotTests/test_VerticalSavedPaymentOptionsViewControllerSnapshotTestsDefaultBadge()", + "WalletViewControllerSnapshotTests/testAlternativeCTA()", + "WalletViewControllerSnapshotTests/testDefault()", + "WalletViewControllerSnapshotTests/testWithApplePay()", + "WalletViewControllerSnapshotTests/testWithCvcRecollection()", + "WalletViewControllerSnapshotTests/testWithError()", + "WalletViewControllerSnapshotTests/testWithExpiryDateRecollection()", + "WalletViewControllerSnapshotTests/testWithMandate()" ], "target": { "containerPath": "container:StripePaymentSheet/StripePaymentSheet.xcodeproj", @@ -177,6 +201,9 @@ }, { "selectedTests": [ + "AutoCompleteViewControllerSnapshotTests/testAutoCompleteViewController()", + "AutoCompleteViewControllerSnapshotTests/testAutoCompleteViewController_appearance()", + "AutoCompleteViewControllerSnapshotTests/testAutoCompleteViewController_darkMode()", "ConfirmButtonSnapshotTests/testConfirmButton()", "ConfirmButtonSnapshotTests/testConfirmButtonBackgroundColor()", "ConfirmButtonSnapshotTests/testConfirmButtonCustomFont()", @@ -190,9 +217,33 @@ "ConfirmButtonSnapshotTests/testConfirmButtonInLinkUI()", "ConfirmButtonSnapshotTests/testConfirmButtonSuccessColor()", "ConfirmButtonTests/testBuyButtonShouldAutomaticallyAdjustItsForegroundColor()", + "LinkInlineSignupElementSnapshotTests/testDefaultOptIn_fully_preFilled()", + "LinkInlineSignupElementSnapshotTests/testDefaultOptIn_fully_preFilled_longEmail()", + "LinkInlineSignupElementSnapshotTests/testDefaultOptIn_partially_preFilled()", + "LinkInlineSignupElementSnapshotTests/testDefaultState()", + "LinkInlineSignupElementSnapshotTests/testDefaultState_textFieldsOnly()", + "LinkInlineSignupElementSnapshotTests/testExpandedState()", + "LinkInlineSignupElementSnapshotTests/testExpandedState_nonUS()", + "LinkInlineSignupElementSnapshotTests/testExpandedState_nonUS_preFilled()", + "LinkInlineSignupElementSnapshotTests/testExpandedState_nonUS_preFilled_textFieldsOnly()", + "LinkInlineSignupElementSnapshotTests/testExpandedState_nonUS_textFieldsOnly()", + "LinkInlineSignupElementSnapshotTests/testExpandedState_textFieldsOnly()", + "LinkInlineSignupElementSnapshotTests/testSignupOptInFeatureEnabled_unchecked()", "RemoveButtonSnapshotTests/testRemoveButton()", "RemoveButtonSnapshotTests/testRemoveButtonCustomFontScales()", - "RemoveButtonSnapshotTests/testRemoveButtonCustomSheetBackgroundAndDanger()" + "RemoveButtonSnapshotTests/testRemoveButtonCustomSheetBackgroundAndDanger()", + "RemoveButtonSnapshotTests/testRemoveButtonCustomZeroCornerRadius()", + "WalletHeaderViewSnapshotTests/testAdaptiveElements()", + "WalletHeaderViewSnapshotTests/testAdaptiveElementsWithCustomApplePayCta()", + "WalletHeaderViewSnapshotTests/testAllButtons()", + "WalletHeaderViewSnapshotTests/testAllButtonsSetupIntent()", + "WalletHeaderViewSnapshotTests/testAllButtonsWithCustomApplePayCta()", + "WalletHeaderViewSnapshotTests/testApplePayButton()", + "WalletHeaderViewSnapshotTests/testApplePayButtonWithCustomCta()", + "WalletHeaderViewSnapshotTests/testCustomCornerRadius()", + "WalletHeaderViewSnapshotTests/testCustomFont()", + "WalletHeaderViewSnapshotTests/testCustomFontScales()", + "WalletHeaderViewSnapshotTests/testLinkButton()" ], "target": { "containerPath": "container:Stripe/Stripe.xcodeproj", diff --git a/StripePaymentSheet/StripePaymentSheet.xcodeproj/project.pbxproj b/StripePaymentSheet/StripePaymentSheet.xcodeproj/project.pbxproj index 199b8cb8a4f9..d39cb13ec5fd 100644 --- a/StripePaymentSheet/StripePaymentSheet.xcodeproj/project.pbxproj +++ b/StripePaymentSheet/StripePaymentSheet.xcodeproj/project.pbxproj @@ -263,7 +263,7 @@ 630A3B22BC5C176928538511 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B7188D37BDE69B56D8223046 /* Main.storyboard */; }; 648FDD85FD6ECDA1BBC71D45 /* CustomerSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83FA9C54257694EC0F205A5C /* CustomerSheet.swift */; }; 64DE5688E4FBE92E1F49810C /* ExternalPaymentMethod.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2BFA5FA03C7093654EC6926F /* ExternalPaymentMethod.swift */; }; - 657D2C9E2E9003BD001797CA /* PayWithLinkViewController-NewPaymentViewControllerSnapshotTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 657D2C9D2E9003BD001797CA /* PayWithLinkViewController-NewPaymentViewControllerSnapshotTests.swift */; }; + 655218682E969EAF00A47631 /* PayWithLinkNewPaymentViewControllerSnapshotTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 655218672E969EAF00A47631 /* PayWithLinkNewPaymentViewControllerSnapshotTests.swift */; }; 68F13446778AF2CAA631ACDE /* PaymentSheet+DeferredAPITest.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA8F7F2824DFC78268ED6459 /* PaymentSheet+DeferredAPITest.swift */; }; 694A3B36AC19FC1F87EF0CB1 /* CustomerSheetPaymentMethodAvailabilityTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F42DA5892E8E4C28D434AEA7 /* CustomerSheetPaymentMethodAvailabilityTests.swift */; }; 6A529F76ECB33C9154314C1F /* STPAnalyticsClient+LUXE.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83B5AAA4347A6918EC267210 /* STPAnalyticsClient+LUXE.swift */; }; @@ -787,7 +787,7 @@ 62CE362B80042827F47ABC3F /* AffirmCopyLabel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AffirmCopyLabel.swift; sourceTree = ""; }; 64C8F350CDB5A29F62E86592 /* FlowControllerStateTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlowControllerStateTests.swift; sourceTree = ""; }; 64D658AC15478BF1E0A76B9D /* TestModeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestModeView.swift; sourceTree = ""; }; - 657D2C9D2E9003BD001797CA /* PayWithLinkViewController-NewPaymentViewControllerSnapshotTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "PayWithLinkViewController-NewPaymentViewControllerSnapshotTests.swift"; sourceTree = ""; }; + 655218672E969EAF00A47631 /* PayWithLinkNewPaymentViewControllerSnapshotTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PayWithLinkNewPaymentViewControllerSnapshotTests.swift; sourceTree = ""; }; 668A2F2E20F846FDAFEC1217 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; 67A8D073B075B32BECCD905A /* form_specs.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = form_specs.json; sourceTree = ""; }; 68C3318ED094D63626740234 /* InstantDebitsOnlyFinancialConnectionsAuthManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InstantDebitsOnlyFinancialConnectionsAuthManager.swift; sourceTree = ""; }; @@ -2121,10 +2121,10 @@ FCA28FF8CD5BA829A44CDCE7 /* Link */ = { isa = PBXGroup; children = ( + 655218672E969EAF00A47631 /* PayWithLinkNewPaymentViewControllerSnapshotTests.swift */, 31CC9B6C2CB5F69600E84A38 /* ButtonLinkSnapshotTests.swift */, 31CC9B6D2CB5F69600E84A38 /* LinkBadgeViewSnapshotTest.swift */, 49F532FC2E4E7610002CD0CA /* LinkHintMessageViewSnapshotTests.swift */, - 657D2C9D2E9003BD001797CA /* PayWithLinkViewController-NewPaymentViewControllerSnapshotTests.swift */, 31CC9B712CB5F69600E84A38 /* LinkNavigationBarSnapshotTests.swift */, 31CC9B742CB5F69600E84A38 /* LinkPopupURLParserTests.swift */, 31CC9B752CB5F69600E84A38 /* LinkToastSnapshotTests.swift */, @@ -2424,6 +2424,7 @@ 6B50BCF02C29F888009702FB /* CustomerSavedPaymentMethodsCollectionViewControllerTests.swift in Sources */, 1C70F42915587CBF883E01DD /* PaymentSheetLoaderTest.swift in Sources */, 96B31ABDA593F9C7FC3DBF79 /* PaymentSheetPaymentMethodTypeTest.swift in Sources */, + 655218682E969EAF00A47631 /* PayWithLinkNewPaymentViewControllerSnapshotTests.swift in Sources */, 312AE7092D2C87EA0091E5AF /* PayWithLinkViewControllerTests.swift in Sources */, 041E3F2DFDFD8FA7D3353CDB /* PaymentSheetSnapshotTests.swift in Sources */, 1330B53140DE10F641A82099 /* PaymentSheetViewControllerSnapshotTests.swift in Sources */, @@ -2445,7 +2446,6 @@ 29C98FB712F3FB987CBE18B0 /* STPFixtures+PaymentSheet.swift in Sources */, 4978AC8B2E316DE600001144 /* LinkInlineVerificationViewSnapshotTests.swift in Sources */, 45D9849E9B36C56E15EAAE0A /* SavedPaymentOptionsViewControllerSnapshotTests.swift in Sources */, - 657D2C9E2E9003BD001797CA /* PayWithLinkViewController-NewPaymentViewControllerSnapshotTests.swift in Sources */, B6F4C5F82CADB0CB00AF3767 /* USBankAccountPaymentMethodElementTest.swift in Sources */, 9787A622B527C1AD96A73827 /* SepaMandateViewControllerSnapshotTest.swift in Sources */, 61A799522CC2053500D7DFFA /* EmbeddedFormViewControllerSnapshotTests.swift in Sources */, diff --git a/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Link/PayWithLinkViewController-NewPaymentViewControllerSnapshotTests.swift b/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Link/PayWithLinkNewPaymentViewControllerSnapshotTests.swift similarity index 90% rename from StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Link/PayWithLinkViewController-NewPaymentViewControllerSnapshotTests.swift rename to StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Link/PayWithLinkNewPaymentViewControllerSnapshotTests.swift index 70320f495b18..8b7ce500d25e 100644 --- a/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Link/PayWithLinkViewController-NewPaymentViewControllerSnapshotTests.swift +++ b/StripePaymentSheet/StripePaymentSheetTests/PaymentSheet/Link/PayWithLinkNewPaymentViewControllerSnapshotTests.swift @@ -1,5 +1,5 @@ // -// PayWithLinkViewController-NewPaymentViewControllerSnapshotTests.swift +// PayWithLinkNewPaymentViewControllerSnapshotTests.swift // StripePaymentSheetTests // // Created by Jeremy Kelleher on 10/1/25. @@ -10,7 +10,8 @@ import StripeCoreTestUtils @testable@_spi(STP) import StripePaymentSheet @testable@_spi(STP) import StripeUICore -class PayWithLinkViewController_NewPaymentViewControllerSnapshotTests: STPSnapshotTestCase { +// @iOS26 +class PayWithLinkNewPaymentViewControllerSnapshotTests: STPSnapshotTestCase { override func setUp() { @@ -54,7 +55,7 @@ class PayWithLinkViewController_NewPaymentViewControllerSnapshotTests: STPSnapsh } -extension PayWithLinkViewController_NewPaymentViewControllerSnapshotTests { +extension PayWithLinkNewPaymentViewControllerSnapshotTests { func makeSUT(isAddingFirstPaymentMethod: Bool) throws -> PayWithLinkViewController.NewPaymentViewController { diff --git a/Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkViewController_NewPaymentViewControllerSnapshotTests/testIsAddingFirstPaymentMethodAndReturnError_@3x.png b/Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkNewPaymentViewControllerSnapshotTests/testIsAddingFirstPaymentMethodAndReturnError_@3x.png similarity index 100% rename from Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkViewController_NewPaymentViewControllerSnapshotTests/testIsAddingFirstPaymentMethodAndReturnError_@3x.png rename to Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkNewPaymentViewControllerSnapshotTests/testIsAddingFirstPaymentMethodAndReturnError_@3x.png diff --git a/Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkViewController_NewPaymentViewControllerSnapshotTests/testIsAddingFirstPaymentMethodAndReturnError__iOS26@3x.png b/Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkNewPaymentViewControllerSnapshotTests/testIsAddingFirstPaymentMethodAndReturnError__iOS26@3x.png similarity index 100% rename from Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkViewController_NewPaymentViewControllerSnapshotTests/testIsAddingFirstPaymentMethodAndReturnError__iOS26@3x.png rename to Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkNewPaymentViewControllerSnapshotTests/testIsAddingFirstPaymentMethodAndReturnError__iOS26@3x.png diff --git a/Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkViewController_NewPaymentViewControllerSnapshotTests/testIsNotAddingFirstPaymentMethodAndReturnError_@3x.png b/Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkNewPaymentViewControllerSnapshotTests/testIsNotAddingFirstPaymentMethodAndReturnError_@3x.png similarity index 100% rename from Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkViewController_NewPaymentViewControllerSnapshotTests/testIsNotAddingFirstPaymentMethodAndReturnError_@3x.png rename to Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkNewPaymentViewControllerSnapshotTests/testIsNotAddingFirstPaymentMethodAndReturnError_@3x.png diff --git a/Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkViewController_NewPaymentViewControllerSnapshotTests/testIsNotAddingFirstPaymentMethodAndReturnError__iOS26@3x.png b/Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkNewPaymentViewControllerSnapshotTests/testIsNotAddingFirstPaymentMethodAndReturnError__iOS26@3x.png similarity index 100% rename from Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkViewController_NewPaymentViewControllerSnapshotTests/testIsNotAddingFirstPaymentMethodAndReturnError__iOS26@3x.png rename to Tests/ReferenceImages_64/StripePaymentSheetTests.PayWithLinkNewPaymentViewControllerSnapshotTests/testIsNotAddingFirstPaymentMethodAndReturnError__iOS26@3x.png diff --git a/fastlane/Fastfile b/fastlane/Fastfile index d5b74e37f484..399f5def0a45 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -88,7 +88,7 @@ platform :ios do Dir.chdir('..') do schemes.each do |scheme| - sh("./ci_scripts/test.rb --scheme '#{scheme}' --device '#{options[:device]}' --version #{options[:version]} --skip-snapshot-tests --skip-test 'StripePaymentSheetTests/PayWithLinkViewController_NewPaymentViewControllerSnapshotTests/testIsAddingFirstPaymentMethod,StripePaymentSheetTests/PayWithLinkViewController_NewPaymentViewControllerSnapshotTests/testIsNotAddingFirstPaymentMethod' --retry-on-failure") + sh("./ci_scripts/test.rb --scheme '#{scheme}' --device '#{options[:device]}' --version #{options[:version]} --skip-snapshot-tests --retry-on-failure") end end end