Skip to content

Commit

Permalink
Revert "Fixes test"
Browse files Browse the repository at this point in the history
This reverts commit d9c3f77.
  • Loading branch information
theMr17 committed Nov 10, 2023
1 parent 376a3e7 commit 2a2ab7a
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1078,14 +1078,17 @@ class ExplorationActivityTest {
explorationDataController.stopPlayingExploration(isCompletion = false)
}

// TODO(#89): The ExplorationActivity takes time to finish. This test case is failing currently.
@Test
@Ignore("The ExplorationActivity takes time to finish, needs to fixed in #89.")
fun testAudioWifi_ratioExp_audioIcon_audioFragHasDefaultLangAndAutoPlays() {
getApplicationDependencies(
internalProfileId,
RATIOS_TOPIC_ID,
RATIOS_STORY_ID_0,
RATIOS_EXPLORATION_ID_0
)
networkConnectionUtil.setCurrentConnectionStatus(ProdConnectionStatus.LOCAL)
launch<ExplorationActivity>(
createExplorationActivityIntent(
internalProfileId,
Expand All @@ -1096,18 +1099,20 @@ class ExplorationActivityTest {
)
).use {
waitForTheView(withText("What is a Ratio?"))
networkConnectionUtil.setCurrentConnectionStatus(ProdConnectionStatus.LOCAL)
testCoroutineDispatchers.runCurrent()
onView(withId(R.id.action_audio_player)).perform(click())

testCoroutineDispatchers.runCurrent()
onView(withId(R.id.audio_bar_container)).check(matches(isDisplayed()))
onView(withId(R.id.audio_fragment_voiceover_progressbar)).check(matches(isDisplayed()))

onView(
allOf(
withId(R.id.play_pause_audio_icon),
withEffectiveVisibility(Visibility.VISIBLE)
)
)
onView(allOf(withId(R.id.audio_language_icon), withEffectiveVisibility(Visibility.VISIBLE)))
waitForTheView(withDrawable(R.drawable.ic_pause_circle_filled_white_24dp))
onView(withId(R.id.play_pause_audio_icon)).check(
matches(
withDrawable(R.drawable.ic_pause_circle_filled_white_24dp)
withDrawable(
R.drawable.ic_pause_circle_filled_white_24dp
)
)
)
}
Expand Down

0 comments on commit 2a2ab7a

Please sign in to comment.