From 0397de71dcf8db07749bcde9e9cb79882d0c2b40 Mon Sep 17 00:00:00 2001 From: Adhiambo Peres <59600948+adhiamboperes@users.noreply.github.com> Date: Wed, 4 Sep 2024 08:37:10 +0300 Subject: [PATCH] Fix failing audio language tests --- .../oppia/android/app/options/AudioLanguageFragmentTest.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/sharedTest/java/org/oppia/android/app/options/AudioLanguageFragmentTest.kt b/app/src/sharedTest/java/org/oppia/android/app/options/AudioLanguageFragmentTest.kt index 3a18304a125..bae21eac29b 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/options/AudioLanguageFragmentTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/options/AudioLanguageFragmentTest.kt @@ -348,7 +348,7 @@ class AudioLanguageFragmentTest { } @Test - fun testFragment_portraitMode_continueButtonClicked_launchesClassroomScreen() { + fun testFragment_multipleClassroomsEnabled_continueButtonClicked_launchesClassroomScreen() { TestPlatformParameterModule.forceEnableMultipleClassrooms(true) initializeTestApplicationComponent(enableOnboardingFlowV2 = true) launch( @@ -365,7 +365,7 @@ class AudioLanguageFragmentTest { } @Test - fun testFragment_landscapeMode_continueButtonClicked_launchesClassroomScreen() { + fun testFragment_landscapeMode_multipleClassroomsEnabled_continueButtonLaunchesClassroomScreen() { TestPlatformParameterModule.forceEnableMultipleClassrooms(true) initializeTestApplicationComponent(enableOnboardingFlowV2 = true) launch( @@ -384,6 +384,7 @@ class AudioLanguageFragmentTest { @Test @RunOn(TestPlatform.ROBOLECTRIC, buildEnvironments = [BuildEnvironment.BAZEL]) fun testFragment_languageSelectionChanged_selectionIsUpdated() { + TestPlatformParameterModule.forceEnableMultipleClassrooms(false) initializeTestApplicationComponent(enableOnboardingFlowV2 = true) launch( createDefaultAudioActivityIntent(ENGLISH_AUDIO_LANGUAGE) @@ -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( createDefaultAudioActivityIntent(ENGLISH_AUDIO_LANGUAGE)