File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Classes/ViewRelated/Orders/Order Creation
WooCommerceTests/ViewRelated/Orders/Order Creation Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ private extension AddOrderCoordinator {
8484 ///
8585 func presentNewOrderController( ) {
8686 let viewController = NewOrderHostingController ( )
87- let newOrderNC = WooNavigationController ( rootViewController : viewController )
88- navigationController. present ( newOrderNC , animated: true )
87+ viewController . hidesBottomBarWhenPushed = true
88+ navigationController. pushViewController ( viewController , animated: true )
8989 }
9090}
Original file line number Diff line number Diff line change @@ -74,14 +74,9 @@ final class AddOrderCoordinatorTests: XCTestCase {
7474
7575 // When
7676 coordinator. start ( )
77- waitUntil {
78- coordinator. navigationController. presentedViewController != nil
79- }
8077
8178 // Then
82- let presentedNC = coordinator. navigationController. presentedViewController as? UINavigationController
83- assertThat ( presentedNC, isAnInstanceOf: WooNavigationController . self)
84- assertThat ( presentedNC? . topViewController, isAnInstanceOf: NewOrderHostingController . self)
79+ assertThat ( coordinator. navigationController. topViewController, isAnInstanceOf: NewOrderHostingController . self)
8580 }
8681}
8782
You can’t perform that action at this time.
0 commit comments