diff --git a/app/src/sharedTest/java/org/oppia/android/app/profile/PinPasswordActivityTest.kt b/app/src/sharedTest/java/org/oppia/android/app/profile/PinPasswordActivityTest.kt index 5da1ccdf4e5..1e678cb7cdb 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/profile/PinPasswordActivityTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/profile/PinPasswordActivityTest.kt @@ -87,9 +87,7 @@ import org.oppia.android.domain.platformparameter.PlatformParameterSingletonModu import org.oppia.android.domain.question.QuestionModule import org.oppia.android.domain.workmanager.WorkManagerConfigurationModule import org.oppia.android.testing.OppiaTestRule -import org.oppia.android.testing.RunOn import org.oppia.android.testing.TestLogReportingModule -import org.oppia.android.testing.TestPlatform import org.oppia.android.testing.espresso.EditTextInputAction import org.oppia.android.testing.espresso.TextInputAction.Companion.hasErrorText import org.oppia.android.testing.espresso.TextInputAction.Companion.hasNoErrorText @@ -219,6 +217,7 @@ class PinPasswordActivityTest { @Test fun testPinPassword_withAdmin_inputCorrectPin_opensHomeActivity() { + TestPlatformParameterModule.forceEnableMultipleClassrooms(false) ActivityScenario.launch( PinPasswordActivity.createPinPasswordActivityIntent( context = context, @@ -235,7 +234,6 @@ class PinPasswordActivityTest { } @Test - @RunOn(TestPlatform.ESPRESSO) fun testPinPassword_enableClassrooms_withAdmin_inputCorrectPin_opensClassroomListActivity() { TestPlatformParameterModule.forceEnableMultipleClassrooms(true) ActivityScenario.launch( @@ -256,6 +254,7 @@ class PinPasswordActivityTest { @Test fun testPinPassword_withUser_inputCorrectPin_opensHomeActivity() { + TestPlatformParameterModule.forceEnableMultipleClassrooms(false) ActivityScenario.launch( PinPasswordActivity.createPinPasswordActivityIntent( context = context, @@ -272,7 +271,6 @@ class PinPasswordActivityTest { } @Test - @RunOn(TestPlatform.ESPRESSO) fun testPinPassword_enableClassrooms_withUser_inputCorrectPin_opensClassroomListActivity() { TestPlatformParameterModule.forceEnableMultipleClassrooms(true) ActivityScenario.launch( @@ -544,6 +542,7 @@ class PinPasswordActivityTest { @Test fun testPinPassword_withUser_forgot_inputAdminPinAndNewPin_opensHomeActivity() { + TestPlatformParameterModule.forceEnableMultipleClassrooms(false) ActivityScenario.launch( PinPasswordActivity.createPinPasswordActivityIntent( context = context,