37 lines
1.0 KiB
Objective-C
37 lines
1.0 KiB
Objective-C
//
|
|
// STPLabeledFormTextFieldViewSnapshotTests.m
|
|
// StripeiOS Tests
|
|
//
|
|
// Created by Cameron Sabol on 3/13/20.
|
|
// Copyright © 2020 Stripe, Inc. All rights reserved.
|
|
//
|
|
|
|
|
|
#import "STPTestUtils.h"
|
|
|
|
@import iOSSnapshotTestCaseCore;
|
|
|
|
@interface STPLabeledFormTextFieldViewSnapshotTests : FBSnapshotTestCase
|
|
|
|
@end
|
|
|
|
@implementation STPLabeledFormTextFieldViewSnapshotTests
|
|
|
|
//- (void)setUp {
|
|
// [super setUp];
|
|
//
|
|
// self.recordMode = YES;
|
|
//}
|
|
|
|
- (void)testAppearance {
|
|
STPFormTextField *formTextField = [[STPFormTextField alloc] init];
|
|
formTextField.placeholder = @"A placeholder";
|
|
formTextField.placeholderColor = [UIColor lightGrayColor];
|
|
STPLabeledFormTextFieldView *labeledFormField = [[STPLabeledFormTextFieldView alloc] initWithFormLabel:@"Test Label" textField:formTextField];
|
|
labeledFormField.formBackgroundColor = [UIColor whiteColor];
|
|
labeledFormField.frame = CGRectMake(0.f, 0.f, 320.f, 44.f);
|
|
STPSnapshotVerifyView(labeledFormField, @"STPLabeledFormTextFieldView.defaultAppearance");
|
|
}
|
|
|
|
@end
|