@@ -190,23 +190,10 @@ final class AuthRouterTests: BitwardenTestCase { // swiftlint:disable:this type_
190
190
XCTAssertEqual ( errorReporter. errors as? [ BitwardenTestError ] , [ . example] )
191
191
}
192
192
193
- /// `handleAndRoute(_ :)` redirects `.didCompleteAuth` to `.landing` and doesn't set the
194
- /// carousel shown flag if the carousel feature flag is off.
195
- func test_handleAndRoute_didCompleteAuth_carouselNotShown( ) async {
196
- authRepository. activeAccount = . fixture( )
197
- configService. featureFlagsBool [ . nativeCarouselFlow] = false
198
-
199
- let route = await subject. handleAndRoute ( . didCompleteAuth)
200
-
201
- XCTAssertEqual ( route, . complete)
202
- XCTAssertFalse ( stateService. introCarouselShown)
203
- }
204
-
205
193
/// `handleAndRoute(_ :)` redirects `.didCompleteAuth` to `.landing` and sets the carousel shown
206
- /// flag if the carousel feature flag is on and the carousel hasn't been shown yet.
194
+ /// flag if the carousel hasn't been shown yet.
207
195
func test_handleAndRoute_didCompleteAuth_carouselShown( ) async {
208
196
authRepository. activeAccount = . fixture( )
209
- configService. featureFlagsBoolPreAuth [ . nativeCarouselFlow] = true
210
197
211
198
let route = await subject. handleAndRoute ( . didCompleteAuth)
212
199
@@ -215,10 +202,9 @@ final class AuthRouterTests: BitwardenTestCase { // swiftlint:disable:this type_
215
202
}
216
203
217
204
/// `handleAndRoute(_ :)` redirects `.didCompleteAuth` to `.vaultUnlockSetup` and sets the
218
- /// carousel shown flag if the carousel feature flag is on and the carousel hasn't been shown yet.
205
+ /// carousel shown flag and the carousel hasn't been shown yet.
219
206
func test_handleAndRoute_didCompleteAuth_carouselShown_vaultUnlockSetup( ) async {
220
207
authRepository. activeAccount = . fixture( )
221
- configService. featureFlagsBoolPreAuth [ . nativeCarouselFlow] = true
222
208
stateService. activeAccount = . fixture( )
223
209
stateService. accountSetupVaultUnlock [ " 1 " ] = . incomplete
224
210
@@ -956,8 +942,6 @@ final class AuthRouterTests: BitwardenTestCase { // swiftlint:disable:this type_
956
942
/// `handleAndRoute(_ :)` redirects `.didStart` to `.introCarousel` if there's no accounts and
957
943
/// the carousel flow is enabled.
958
944
func test_handleAndRoute_didStart_carouselFlow( ) async {
959
- configService. featureFlagsBoolPreAuth [ . nativeCarouselFlow] = true
960
-
961
945
let route = await subject. handleAndRoute ( . didStart)
962
946
963
947
XCTAssertEqual ( route, . introCarousel)
@@ -966,7 +950,6 @@ final class AuthRouterTests: BitwardenTestCase { // swiftlint:disable:this type_
966
950
/// `handleAndRoute(_ :)` redirects `.didStart` to `.landing` if there's no accounts, the
967
951
/// carousel flow is enabled, but the carousel has already been shown.
968
952
func test_handleAndRoute_didStart_carouselFlow_carouselShown( ) async {
969
- configService. featureFlagsBool [ . nativeCarouselFlow] = true
970
953
stateService. introCarouselShown = true
971
954
972
955
let route = await subject. handleAndRoute ( . didStart)
@@ -976,8 +959,6 @@ final class AuthRouterTests: BitwardenTestCase { // swiftlint:disable:this type_
976
959
977
960
/// `handleAndRoute(_ :)` redirects `.didStart` to `.landing` if it's running in an extension.
978
961
func test_handleAndRoute_didStart_carouselFlow_extension( ) async {
979
- configService. featureFlagsBool [ . nativeCarouselFlow] = true
980
-
981
962
subject = AuthRouter (
982
963
isInAppExtension: true ,
983
964
services: ServiceContainer . withMocks (
@@ -999,7 +980,6 @@ final class AuthRouterTests: BitwardenTestCase { // swiftlint:disable:this type_
999
980
func test_handleAndRoute_didStart_carouselFlow_existingAccountNeverLock( ) async {
1000
981
let account = Account . fixture ( )
1001
982
authRepository. activeAccount = . fixture( )
1002
- configService. featureFlagsBoolPreAuth [ . nativeCarouselFlow] = true
1003
983
vaultTimeoutService. vaultTimeout [ account. profile. userId] = . never
1004
984
1005
985
let route = await subject. handleAndRoute ( . didStart)
@@ -1014,7 +994,6 @@ final class AuthRouterTests: BitwardenTestCase { // swiftlint:disable:this type_
1014
994
func test_handleAndRoute_didStart_carouselFlow_existingAccountNeverLockOnManuallylocked( ) async {
1015
995
let account = Account . fixture ( )
1016
996
authRepository. activeAccount = . fixture( )
1017
- configService. featureFlagsBoolPreAuth [ . nativeCarouselFlow] = true
1018
997
vaultTimeoutService. vaultTimeout [ account. profile. userId] = . never
1019
998
stateService. isAuthenticated [ account. profile. userId] = true
1020
999
stateService. manuallyLockedAccounts [ account. profile. userId] = true
@@ -1047,13 +1026,6 @@ final class AuthRouterTests: BitwardenTestCase { // swiftlint:disable:this type_
1047
1026
XCTAssertTrue ( authRepository. unlockVaultWithNeverlockKeyCalled)
1048
1027
}
1049
1028
1050
- /// `handleAndRoute(_ :)` redirects `.didStart` to `.landing`
1051
- /// when there are no accounts.
1052
- func test_handleAndRoute_didStart_noAccounts( ) async {
1053
- let route = await subject. handleAndRoute ( . didStart)
1054
- XCTAssertEqual ( route, . landing)
1055
- }
1056
-
1057
1029
/// `handleAndRoute(_ :)` redirects `.didStart` to `.vaultUnlock`
1058
1030
/// when the account is set to timeout on app start with a lock vault action.
1059
1031
func test_handleAndRoute_didStart_timeoutOnAppRestart_lock( ) async {
0 commit comments