@@ -396,7 +396,7 @@ class ProfileChooserFragmentTest {
396
396
}
397
397
398
398
@Test
399
- fun testMigrateProfiles_onboardingV2_clickLearnerWithPin_checkOpensIntroActivity () {
399
+ fun testMigrateProfiles_onboardingV2_clickLearnerWithPin_checkOpensProfileLoginActivity () {
400
400
TestPlatformParameterModule .forceEnableOnboardingFlowV2(true )
401
401
setUpTestApplicationComponent()
402
402
profileTestHelper.initializeProfiles(autoLogIn = true )
@@ -409,7 +409,7 @@ class ProfileChooserFragmentTest {
409
409
position = 1
410
410
)
411
411
).perform(click())
412
- intended(hasComponent(PinPasswordActivity ::class .java.name))
412
+ intended(hasComponent(ProfileLoginActivity ::class .java.name))
413
413
}
414
414
}
415
415
@@ -1454,58 +1454,6 @@ class ProfileChooserFragmentTest {
1454
1454
}
1455
1455
}
1456
1456
1457
- @Test
1458
- fun testFragment_enableOnboardingV2_clickNonAdminProfileWithPin_checkOpensPinPasswordActivity () {
1459
- TestPlatformParameterModule .forceEnableOnboardingFlowV2(true )
1460
- setUpTestApplicationComponent()
1461
- profileTestHelper.addOnlyAdminProfile()
1462
- profileTestHelper.addMoreProfiles(1 )
1463
-
1464
- launch(ProfileChooserActivity ::class .java).use {
1465
- testCoroutineDispatchers.runCurrent()
1466
- onView(
1467
- atPosition(
1468
- recyclerViewId = R .id.profiles_list,
1469
- position = 1
1470
- )
1471
- ).perform(click())
1472
-
1473
- testCoroutineDispatchers.runCurrent()
1474
-
1475
- intended(hasComponent(PinPasswordActivity ::class .java.name))
1476
- }
1477
- }
1478
-
1479
- @Test
1480
- fun testFragment_clickNonAdminProfileWithoutPin_userNotOnboarded_checkOpensIntroActivity () {
1481
- TestPlatformParameterModule .forceEnableOnboardingFlowV2(true )
1482
- setUpTestApplicationComponent()
1483
- profileTestHelper.addOnlyAdminProfile()
1484
- profileManagementController.addProfile(
1485
- name = " Learner" ,
1486
- pin = " " ,
1487
- avatarImagePath = null ,
1488
- allowDownloadAccess = true ,
1489
- colorRgb = - 10710042 ,
1490
- isAdmin = false
1491
- )
1492
- profileTestHelper.markProfileOnboardingStarted(testProfileId1)
1493
-
1494
- launch(ProfileChooserActivity ::class .java).use {
1495
- testCoroutineDispatchers.runCurrent()
1496
- onView(
1497
- atPosition(
1498
- recyclerViewId = R .id.profiles_list,
1499
- position = 1
1500
- )
1501
- ).perform(click())
1502
-
1503
- testCoroutineDispatchers.runCurrent()
1504
-
1505
- intended(hasComponent(IntroActivity ::class .java.name))
1506
- }
1507
- }
1508
-
1509
1457
@Test
1510
1458
fun testFragment_clickLearnerWithoutPin_alreadyOnboarded_checkOpensHomeActivity () {
1511
1459
TestPlatformParameterModule .forceEnableOnboardingFlowV2(true )
0 commit comments