Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theMr17 committed Jul 19, 2024
1 parent 4e2d710 commit cd4bb81
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ class ClassroomListFragmentTest {

@Test
fun testFragment_markAtLeastOneStoryCompletedForAllTopics_displaysComingSoonTopicsList() {
logIntoAdminTwice()
fakeOppiaClock.setFakeTimeMode(FakeOppiaClock.FakeTimeMode.MODE_UPTIME_MILLIS)
storyProgressTestHelper.markCompletedFractionsTopic(
profileId = profileId,
Expand All @@ -647,7 +648,6 @@ class ClassroomListFragmentTest {
profileId = profileId,
timestampOlderThanOneWeek = false
)
logIntoAdminTwice()

composeRule.onNodeWithTag(COMING_SOON_TOPIC_LIST_HEADER_TEST_TAG)
.assertTextContains(context.getString(R.string.coming_soon))
Expand Down Expand Up @@ -682,6 +682,7 @@ class ClassroomListFragmentTest {

@Test
fun testFragment_markStory0OfRatiosAndTestTopics0And1Done_playTestTopicStory0_noPromotions() {
logIntoAdminTwice()
fakeOppiaClock.setFakeTimeMode(FakeOppiaClock.FakeTimeMode.MODE_UPTIME_MILLIS)
storyProgressTestHelper.markCompletedRatiosStory0(
profileId = profileId,
Expand All @@ -699,7 +700,6 @@ class ClassroomListFragmentTest {
profileId = profileId,
timestampOlderThanOneWeek = false
)
logIntoAdminTwice()

composeRule.onNodeWithTag(COMING_SOON_TOPIC_LIST_HEADER_TEST_TAG)
.assertTextContains(context.getString(R.string.coming_soon))
Expand Down

0 comments on commit cd4bb81

Please sign in to comment.