File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
solutions/devsprint-caio-santos-7
FinanceAppTests/Screens/ActivityDetails
__Snapshots__/ActivityDetailsViewTests
FinanceApp/Screens/ActivityDetails Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ final class ActivityDetailsView: UIView {
2727 stack. alignment = . center
2828 stack. spacing = 10
2929 stack. axis = . vertical
30- stack. addArrangedSubview ( bagImage)
31- stack. addArrangedSubview ( mallLabel)
32- stack. addArrangedSubview ( shoppingLabel)
30+
3331 return stack
3432 } ( )
3533
@@ -39,8 +37,7 @@ final class ActivityDetailsView: UIView {
3937 stack. alignment = . center
4038 stack. spacing = 10
4139 stack. axis = . vertical
42- stack. addArrangedSubview ( valueLabel)
43- stack. addArrangedSubview ( hourLabel)
40+
4441 return stack
4542 } ( )
4643
@@ -114,6 +111,11 @@ extension ActivityDetailsView: ViewCodable {
114111 addSubview ( vStack)
115112 addSubview ( vCenterStack)
116113 addSubview ( reportIssueButton)
114+ vStack. addArrangedSubview ( bagImage)
115+ vStack. addArrangedSubview ( mallLabel)
116+ vStack. addArrangedSubview ( shoppingLabel)
117+ vCenterStack. addArrangedSubview ( valueLabel)
118+ vCenterStack. addArrangedSubview ( hourLabel)
117119 }
118120
119121 // MARK: Interface Constraints
Original file line number Diff line number Diff line change @@ -17,13 +17,11 @@ final class ActivityDetailsViewTests: XCTestCase {
1717
1818 func testLoadingComponent( ) {
1919 let component = ActivityDetailsViewController ( )
20- //component.backgroundColor = .yellow
2120 assertSnapshot ( matching: component, as: . image( on: . iPhoneX) )
2221 }
2322
24- func testLoadedComponent ( ) {
23+ func testRenderView ( ) {
2524 let component = ActivityDetailsViewController ( )
26- //component.backgroundColor = .yellow
2725 assertSnapshot ( matching: component, as: . image( on: . iPhoneX) )
2826 }
2927}
You can’t perform that action at this time.
0 commit comments