Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
1,815 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## CHANGELOG AptoUISDK | ||
|
||
# 2021-07-09 Version 2.13.0 | ||
- feature: add alpha version of In App Card Provisioning. Add a card to Apple Wallet. | ||
- improvement: added Load Funds Disclosure screen | ||
- fix: improved load funds screen for smaller devices | ||
- fix: error copies in add card screen | ||
|
||
# 2021-05-26 Version 2.12.0 | ||
- improvement: validated SSN field format | ||
- improvement: updated AlamoFire dependency to the 5.4.3 version. | ||
- fix: resolved issue making the OTP alert dialog not showing up. | ||
- improvement: removed wrong error messages on user logout. | ||
- fix: added the card logo on the main card screen | ||
|
||
# 2021-04-26 Version 2.11.0 | ||
- feature: added new `Exchange rates` disclaimer agreement on Card Settings, if available. | ||
- fix: removes `Monthly Statements` from Account settings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
Example/SnapshotTests/Features/AddCardOnboarding/AddCardOnboardingViewTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// AddCardOnboardingViewTests.swift | ||
// SnapshotTests | ||
// | ||
// Created by Fabio Cuomo on 15/6/21. | ||
// Copyright © 2021 CocoaPods. All rights reserved. | ||
// | ||
|
||
import XCTest | ||
import SnapshotTesting | ||
import SnapKit | ||
|
||
@testable import AptoUISDK | ||
@testable import AptoSDK | ||
|
||
class AddCardOnboardingViewTests: XCTestCase { | ||
|
||
func test_addOnboardingView_rendersViewWithInformation() { | ||
let view = AddCardOnboardingView(uiconfig: UIConfig.default) | ||
view.configure(firstParagraph: "You can instantly transfer funds from your existing bank debit card to your <<VALUE>> card account. Please note that transfers are reviewed and they can be delayed or declined if we suspect risks.", | ||
secondParagraph: "This transaction will appear in your bank account statement as: <<VALUE>>") | ||
view.snp.makeConstraints { make in | ||
make.height.equalTo(896) | ||
make.width.equalTo(414) | ||
} | ||
assertSnapshot(matching: view, as: .image) | ||
} | ||
|
||
} |
Binary file added
BIN
+140 KB
...CardOnboardingViewTests/test_addOnboardingView_rendersViewWithInformation.1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions
33
Example/SnapshotTests/Features/ApplePayProvisioning/ApplePayButtonTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// ApplePayButtonTests.swift | ||
// SnapshotTests | ||
// | ||
// Created by Fabio Cuomo on 14/4/21. | ||
// Copyright © 2021 CocoaPods. All rights reserved. | ||
// | ||
|
||
import XCTest | ||
import SnapshotTesting | ||
import SnapKit | ||
import AptoUISDK | ||
|
||
@testable import AptoSDK | ||
|
||
class ApplePayButtonTests: XCTestCase { | ||
|
||
func test_applePayButton_rendersView() { | ||
let helper = InAppProvisioningHelper() | ||
let buttonView = helper.appleWalletButton() | ||
|
||
let view = UIView() | ||
view.backgroundColor = .white | ||
view.addSubview(buttonView) | ||
|
||
buttonView.snp.makeConstraints { $0.center.equalToSuperview() } | ||
view.snp.makeConstraints { make in | ||
make.height.equalTo(896) | ||
make.width.equalTo(414) | ||
} | ||
assertSnapshot(matching: view, as: .image) | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
Example/SnapshotTests/Features/ApplePayProvisioning/ApplePayRowItemViewTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// ApplePayRowItemViewTests.swift | ||
// SnapshotTests | ||
// | ||
// Created by Fabio Cuomo on 13/4/21. | ||
// Copyright © 2021 CocoaPods. All rights reserved. | ||
// | ||
|
||
import XCTest | ||
import SnapshotTesting | ||
import SnapKit | ||
|
||
@testable import AptoUISDK | ||
@testable import AptoSDK | ||
|
||
class ApplePayRowItemViewTests: XCTestCase { | ||
|
||
func test_applePayRow_rendersView() { | ||
let view = ApplePayRowItemView(with: "card_settings.apple_pay.add_to_wallet.title".podLocalized(), | ||
uiconfig: UIConfig.default) | ||
|
||
view.snp.makeConstraints { make in | ||
make.height.equalTo(896) | ||
make.width.equalTo(414) | ||
} | ||
assertSnapshot(matching: view, as: .image) | ||
} | ||
} |
Binary file added
BIN
+77.6 KB
...sioning/__Snapshots__/ApplePayButtonTests/test_applePayButton_rendersView.1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+77.7 KB
...oning/__Snapshots__/ApplePayRowItemViewTests/test_applePayRow_rendersView.1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+749 KB
...Snapshots__/ApplePaySplashViewTests/test_applePaySplashScreen_rendersView.1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+630 KB
...ApplePaySplashViewTests/test_splashScreenViewController_rendersView.iPhone8.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+640 KB
...ApplePaySplashViewTests/test_splashScreenViewController_rendersView.iPhoneX.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+749 KB
...ePaySplashViewTests/test_splashScreenViewController_rendersView.iPhoneXsMax.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.