From 29c5b9ebbd6fe89677fd1b13ec60f5c063c50934 Mon Sep 17 00:00:00 2001 From: Tyler Thompson Date: Thu, 7 Nov 2019 15:25:13 -0700 Subject: [PATCH] [fluidapi] - 'more things I broke because I was manually testing... - TT' --- WorkflowExample/Ordering/MenuSelectionViewController.swift | 1 - WorkflowTests/UIKitPresenterTests.swift | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/WorkflowExample/Ordering/MenuSelectionViewController.swift b/WorkflowExample/Ordering/MenuSelectionViewController.swift index 05242de33..24c2bc8e8 100644 --- a/WorkflowExample/Ordering/MenuSelectionViewController.swift +++ b/WorkflowExample/Ordering/MenuSelectionViewController.swift @@ -31,7 +31,6 @@ extension MenuSelectionViewController: FlowRepresentable { o.menuType = order.location?.menuTypes.first proceedInWorkflow(o) } - return false return (order.location?.menuTypes.count ?? 0) > 1 } } diff --git a/WorkflowTests/UIKitPresenterTests.swift b/WorkflowTests/UIKitPresenterTests.swift index 02d0a1a55..4ee03ad7d 100644 --- a/WorkflowTests/UIKitPresenterTests.swift +++ b/WorkflowTests/UIKitPresenterTests.swift @@ -557,7 +557,7 @@ class UIKitPresenterTests: XCTestCase { (UIApplication.topViewController() as? FR1)?.proceedInWorkflow() waitUntil(UIApplication.topViewController() is FR3) XCTAssert(UIApplication.topViewController() is FR3) - (UIApplication.topViewController()?.navigationController)?.backButton?.simulateTouch() + (UIApplication.topViewController()?.navigationController)?.popViewController(animated: false) waitUntil(UIApplication.topViewController() is FR2) XCTAssert(UIApplication.topViewController() is FR2) } @@ -636,7 +636,7 @@ class UIKitPresenterTests: XCTestCase { (UIApplication.topViewController() as? FR2)?.proceedInWorkflow() waitUntil(UIApplication.topViewController() is FR3) XCTAssert(UIApplication.topViewController() is FR3) - (UIApplication.topViewController()?.navigationController)?.backButton?.simulateTouch() + (UIApplication.topViewController()?.navigationController)?.popViewController(animated: false) waitUntil(UIApplication.topViewController() is FR1) XCTAssert(UIApplication.topViewController() is FR1) }