From 285e60225231b3583753528fecb1b002252769c6 Mon Sep 17 00:00:00 2001 From: Vishwajith-Shettigar Date: Wed, 24 Jul 2024 09:53:58 +0530 Subject: [PATCH] Fix test --- .../app/topic/questionplayer/QuestionPlayerActivityTest.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/sharedTest/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerActivityTest.kt b/app/src/sharedTest/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerActivityTest.kt index 1225e4aa29a..f0b1064fb4b 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerActivityTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/topic/questionplayer/QuestionPlayerActivityTest.kt @@ -567,6 +567,7 @@ class QuestionPlayerActivityTest { activity.questionPlayerActivityPresenter .loadFragments(ReadingTextSize.EXTRA_LARGE_TEXT_SIZE) } + testCoroutineDispatchers.runCurrent() verifyFontSizeMatches(67F) } } @@ -580,6 +581,7 @@ class QuestionPlayerActivityTest { activity.questionPlayerActivityPresenter .loadFragments(ReadingTextSize.LARGE_TEXT_SIZE) } + testCoroutineDispatchers.runCurrent() verifyFontSizeMatches(58F) } } @@ -592,6 +594,7 @@ class QuestionPlayerActivityTest { activity.questionPlayerActivityPresenter .loadFragments(ReadingTextSize.MEDIUM_TEXT_SIZE) } + testCoroutineDispatchers.runCurrent() verifyFontSizeMatches(48F) } } @@ -604,6 +607,7 @@ class QuestionPlayerActivityTest { activity.questionPlayerActivityPresenter .loadFragments(ReadingTextSize.SMALL_TEXT_SIZE) } + testCoroutineDispatchers.runCurrent() verifyFontSizeMatches(38F) } }