Skip to content

Commit

Permalink
Fix failing audio language tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adhiamboperes committed Sep 4, 2024
1 parent daea15f commit 0397de7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class AudioLanguageFragmentTest {
}

@Test
fun testFragment_portraitMode_continueButtonClicked_launchesClassroomScreen() {
fun testFragment_multipleClassroomsEnabled_continueButtonClicked_launchesClassroomScreen() {
TestPlatformParameterModule.forceEnableMultipleClassrooms(true)
initializeTestApplicationComponent(enableOnboardingFlowV2 = true)
launch<AudioLanguageActivity>(
Expand All @@ -365,7 +365,7 @@ class AudioLanguageFragmentTest {
}

@Test
fun testFragment_landscapeMode_continueButtonClicked_launchesClassroomScreen() {
fun testFragment_landscapeMode_multipleClassroomsEnabled_continueButtonLaunchesClassroomScreen() {
TestPlatformParameterModule.forceEnableMultipleClassrooms(true)
initializeTestApplicationComponent(enableOnboardingFlowV2 = true)
launch<AudioLanguageActivity>(
Expand All @@ -384,6 +384,7 @@ class AudioLanguageFragmentTest {
@Test
@RunOn(TestPlatform.ROBOLECTRIC, buildEnvironments = [BuildEnvironment.BAZEL])
fun testFragment_languageSelectionChanged_selectionIsUpdated() {
TestPlatformParameterModule.forceEnableMultipleClassrooms(false)
initializeTestApplicationComponent(enableOnboardingFlowV2 = true)
launch<AudioLanguageActivity>(
createDefaultAudioActivityIntent(ENGLISH_AUDIO_LANGUAGE)
Expand Down Expand Up @@ -413,6 +414,7 @@ class AudioLanguageFragmentTest {
@Test
@RunOn(TestPlatform.ROBOLECTRIC, buildEnvironments = [BuildEnvironment.BAZEL])
fun testFragment_languageSelectionChanged_configChange_selectionIsUpdated() {
TestPlatformParameterModule.forceEnableMultipleClassrooms(false)
initializeTestApplicationComponent(enableOnboardingFlowV2 = true)
launch<AudioLanguageActivity>(
createDefaultAudioActivityIntent(ENGLISH_AUDIO_LANGUAGE)
Expand Down

0 comments on commit 0397de7

Please sign in to comment.