Skip to content

Commit 1373660

Browse files
committed
Remove duplicate tests
1 parent 252a05b commit 1373660

File tree

1 file changed

+2
-54
lines changed

1 file changed

+2
-54
lines changed

app/src/sharedTest/java/org/oppia/android/app/profile/ProfileChooserFragmentTest.kt

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class ProfileChooserFragmentTest {
396396
}
397397

398398
@Test
399-
fun testMigrateProfiles_onboardingV2_clickLearnerWithPin_checkOpensIntroActivity() {
399+
fun testMigrateProfiles_onboardingV2_clickLearnerWithPin_checkOpensProfileLoginActivity() {
400400
TestPlatformParameterModule.forceEnableOnboardingFlowV2(true)
401401
setUpTestApplicationComponent()
402402
profileTestHelper.initializeProfiles(autoLogIn = true)
@@ -409,7 +409,7 @@ class ProfileChooserFragmentTest {
409409
position = 1
410410
)
411411
).perform(click())
412-
intended(hasComponent(PinPasswordActivity::class.java.name))
412+
intended(hasComponent(ProfileLoginActivity::class.java.name))
413413
}
414414
}
415415

@@ -1454,58 +1454,6 @@ class ProfileChooserFragmentTest {
14541454
}
14551455
}
14561456

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-
15091457
@Test
15101458
fun testFragment_clickLearnerWithoutPin_alreadyOnboarded_checkOpensHomeActivity() {
15111459
TestPlatformParameterModule.forceEnableOnboardingFlowV2(true)

0 commit comments

Comments
 (0)