Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theMr17 committed Aug 23, 2024
1 parent dc4b63e commit 6fd11ad
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -219,6 +217,7 @@ class PinPasswordActivityTest {

@Test
fun testPinPassword_withAdmin_inputCorrectPin_opensHomeActivity() {
TestPlatformParameterModule.forceEnableMultipleClassrooms(false)
ActivityScenario.launch<PinPasswordActivity>(
PinPasswordActivity.createPinPasswordActivityIntent(
context = context,
Expand All @@ -235,7 +234,6 @@ class PinPasswordActivityTest {
}

@Test
@RunOn(TestPlatform.ESPRESSO)
fun testPinPassword_enableClassrooms_withAdmin_inputCorrectPin_opensClassroomListActivity() {
TestPlatformParameterModule.forceEnableMultipleClassrooms(true)
ActivityScenario.launch<PinPasswordActivity>(
Expand All @@ -256,6 +254,7 @@ class PinPasswordActivityTest {

@Test
fun testPinPassword_withUser_inputCorrectPin_opensHomeActivity() {
TestPlatformParameterModule.forceEnableMultipleClassrooms(false)
ActivityScenario.launch<PinPasswordActivity>(
PinPasswordActivity.createPinPasswordActivityIntent(
context = context,
Expand All @@ -272,7 +271,6 @@ class PinPasswordActivityTest {
}

@Test
@RunOn(TestPlatform.ESPRESSO)
fun testPinPassword_enableClassrooms_withUser_inputCorrectPin_opensClassroomListActivity() {
TestPlatformParameterModule.forceEnableMultipleClassrooms(true)
ActivityScenario.launch<PinPasswordActivity>(
Expand Down Expand Up @@ -544,6 +542,7 @@ class PinPasswordActivityTest {

@Test
fun testPinPassword_withUser_forgot_inputAdminPinAndNewPin_opensHomeActivity() {
TestPlatformParameterModule.forceEnableMultipleClassrooms(false)
ActivityScenario.launch<PinPasswordActivity>(
PinPasswordActivity.createPinPasswordActivityIntent(
context = context,
Expand Down

0 comments on commit 6fd11ad

Please sign in to comment.