stripe-ios/StripeIdentity/StripeIdentityTests/Snapshot/BiometricConsentViewControl...

34 lines
939 B
Swift

//
// BiometricConsentViewControllerSnapshotTest.swift
// StripeIdentityTests
//
// Created by Mel Ludowise on 2/14/22.
// Copyright © 2022 Stripe, Inc. All rights reserved.
//
import Foundation
import iOSSnapshotTestCase
@testable import StripeIdentity
final class BiometricConsentViewControllerSnapshotTest: FBSnapshotTestCase {
static let mockVerificationPage = try! VerificationPageMock.response200.make()
override func setUp() {
super.setUp()
// recordMode = true
}
func testViewIsConfiguredFromAPI() throws {
let vc = try BiometricConsentViewController(
brandLogo: SnapshotTestMockData.uiImage(image: .headerIcon),
consentContent: BiometricConsentViewControllerSnapshotTest.mockVerificationPage
.biometricConsent,
sheetController: VerificationSheetControllerMock()
)
STPSnapshotVerifyView(vc.view)
}
}