From 0d2dcbf6540e96fda62f04a69199544ba9eb7b29 Mon Sep 17 00:00:00 2001 From: "Mr. 17" Date: Tue, 17 Oct 2023 22:29:07 +0530 Subject: [PATCH] Fixes test --- .../exploration/ExplorationActivityTest.kt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/src/sharedTest/java/org/oppia/android/app/player/exploration/ExplorationActivityTest.kt b/app/src/sharedTest/java/org/oppia/android/app/player/exploration/ExplorationActivityTest.kt index b880820318e..29be53d5d17 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/player/exploration/ExplorationActivityTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/player/exploration/ExplorationActivityTest.kt @@ -1080,12 +1080,8 @@ class ExplorationActivityTest { @Test fun testAudioWifi_ratioExp_audioIcon_audioFragHasDefaultLangAndAutoPlays() { - getApplicationDependencies( - internalProfileId, - RATIOS_TOPIC_ID, - RATIOS_STORY_ID_0, - RATIOS_EXPLORATION_ID_0 - ) + markAllSpotlightsSeen() + setUpAudio() launch( createExplorationActivityIntent( internalProfileId, @@ -1095,7 +1091,13 @@ class ExplorationActivityTest { shouldSavePartialProgress = false ) ).use { - waitForTheView(withText("What is a Ratio?")) + explorationDataController.startPlayingNewExploration( + internalProfileId, + RATIOS_TOPIC_ID, + RATIOS_STORY_ID_0, + RATIOS_EXPLORATION_ID_0 + ) + // waitForTheView(withText("What is a Ratio?")) networkConnectionUtil.setCurrentConnectionStatus(ProdConnectionStatus.LOCAL) testCoroutineDispatchers.runCurrent() onView(withId(R.id.action_audio_player)).perform(click())