Skip to content

Commit 622b078

Browse files
committed
Update StoreCreationCoordinatorTests now that store name form becomes the first screen.
1 parent 72499a7 commit 622b078

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WooCommerce/WooCommerceTests/Authentication/StoreCreationCoordinatorTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ final class StoreCreationCoordinatorTests: XCTestCase {
7171

7272
// MARK: - Presentation in different states for store creation M2
7373

74-
func test_DomainSelectorHostingController_is_presented_when_navigationController_is_presenting_another_view() throws {
74+
func test_StoreNameFormHostingController_is_presented_when_navigationController_is_presenting_another_view() throws {
7575
// Given
7676
let featureFlagService = MockFeatureFlagService(isStoreCreationM2Enabled: true)
7777
let coordinator = StoreCreationCoordinator(source: .storePicker,
@@ -92,10 +92,10 @@ final class StoreCreationCoordinatorTests: XCTestCase {
9292
self.navigationController.presentedViewController is UINavigationController
9393
}
9494
let storeCreationNavigationController = try XCTUnwrap(navigationController.presentedViewController as? UINavigationController)
95-
assertThat(storeCreationNavigationController.topViewController, isAnInstanceOf: DomainSelectorHostingController.self)
95+
assertThat(storeCreationNavigationController.topViewController, isAnInstanceOf: StoreNameFormHostingController.self)
9696
}
9797

98-
func test_AuthenticatedWebViewController_is_presented_when_navigationController_is_showing_another_view() throws {
98+
func test_StoreNameFormHostingController_is_presented_when_navigationController_is_showing_another_view() throws {
9999
// Given
100100
let featureFlagService = MockFeatureFlagService(isStoreCreationM2Enabled: true)
101101
navigationController.show(.init(), sender: nil)
@@ -113,6 +113,6 @@ final class StoreCreationCoordinatorTests: XCTestCase {
113113
self.navigationController.presentedViewController is UINavigationController
114114
}
115115
let storeCreationNavigationController = try XCTUnwrap(navigationController.presentedViewController as? UINavigationController)
116-
assertThat(storeCreationNavigationController.topViewController, isAnInstanceOf: DomainSelectorHostingController.self)
116+
assertThat(storeCreationNavigationController.topViewController, isAnInstanceOf: StoreNameFormHostingController.self)
117117
}
118118
}

0 commit comments

Comments
 (0)