From d7fdc5eb66c8fdcc07fabe59f2c282eff1e8b7a2 Mon Sep 17 00:00:00 2001 From: XichengSpencer <74568012+XichengSpencer@users.noreply.github.com> Date: Wed, 6 Sep 2023 15:44:50 -0400 Subject: [PATCH] Add markSpotlightSeen --- .../java/org/oppia/android/app/topic/TopicFragmentTest.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/sharedTest/java/org/oppia/android/app/topic/TopicFragmentTest.kt b/app/src/sharedTest/java/org/oppia/android/app/topic/TopicFragmentTest.kt index fe0836d2634..333cab9044e 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/topic/TopicFragmentTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/topic/TopicFragmentTest.kt @@ -335,6 +335,7 @@ class TopicFragmentTest { @Test fun testTopicFragment_toolbarTitle_readerOff_marqueeInRtl_isDisplayedCorrectly() { initializeApplicationComponent(false) + markSpotlightSeen(TOPIC_LESSON_TAB) fakeAccessibilityService.setScreenReaderEnabled(false) activityTestRule.launchActivity( createTopicActivityIntent( @@ -356,6 +357,7 @@ class TopicFragmentTest { @Test fun testTopicFragment_toolbarTitle_readerOn_marqueeInRtl_isDisplayedCorrectly() { initializeApplicationComponent(false) + markSpotlightSeen(TOPIC_LESSON_TAB) fakeAccessibilityService.setScreenReaderEnabled(true) activityTestRule.launchActivity( createTopicActivityIntent( @@ -377,6 +379,7 @@ class TopicFragmentTest { @Test fun testTopicFragment_toolbarTitle_readerOff_marqueeInLtr_isDisplayedCorrectly() { initializeApplicationComponent(false) + markSpotlightSeen(TOPIC_LESSON_TAB) fakeAccessibilityService.setScreenReaderEnabled(false) activityTestRule.launchActivity( createTopicActivityIntent( @@ -397,6 +400,7 @@ class TopicFragmentTest { @Test fun testTopicFragment_toolbarTitle_readerOn_marqueeInLtr_isDisplayedCorrectly() { initializeApplicationComponent(false) + markSpotlightSeen(TOPIC_LESSON_TAB) fakeAccessibilityService.setScreenReaderEnabled(true) activityTestRule.launchActivity( createTopicActivityIntent(