From c35937b0f10c4197d7cc53b006aa108885335538 Mon Sep 17 00:00:00 2001 From: Vishwajith-Shettigar Date: Sat, 27 Jul 2024 13:14:26 +0530 Subject: [PATCH] Removed redundant configuration in tests --- .../android/app/resumelesson/ResumeLessonFragmentTest.kt | 8 ++++---- .../app/topic/revisioncard/RevisionCardFragmentTest.kt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/sharedTest/java/org/oppia/android/app/resumelesson/ResumeLessonFragmentTest.kt b/app/src/sharedTest/java/org/oppia/android/app/resumelesson/ResumeLessonFragmentTest.kt index a375b1faf4a..1a28e628594 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/resumelesson/ResumeLessonFragmentTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/resumelesson/ResumeLessonFragmentTest.kt @@ -299,7 +299,7 @@ class ResumeLessonFragmentTest { ) } - @Test @Config(qualifiers = "w360dp-h640dp-xxhdpi") + @Test @RunOn(TestPlatform.ROBOLECTRIC) fun testResumeLessonFragment_extraLargeTextSize_hasCorrectDimension() { launch(createResumeLessonActivityIntent()).use { @@ -313,7 +313,7 @@ class ResumeLessonFragmentTest { } } - @Test @Config(qualifiers = "w360dp-h640dp-xxhdpi") + @Test @RunOn(TestPlatform.ROBOLECTRIC) fun testResumeLessonFragment_largeTextSize_hasCorrectDimension() { launch(createResumeLessonActivityIntent()).use { @@ -327,7 +327,7 @@ class ResumeLessonFragmentTest { } } - @Test @Config(qualifiers = "w360dp-h640dp-xxhdpi") + @Test @RunOn(TestPlatform.ROBOLECTRIC) fun testResumeLessonFragment_mediumTextSize_hasCorrectDimension() { launch(createResumeLessonActivityIntent()).use { @@ -341,7 +341,7 @@ class ResumeLessonFragmentTest { } } - @Test @Config(qualifiers = "w360dp-h640dp-xxhdpi") + @Test @RunOn(TestPlatform.ROBOLECTRIC) fun testResumeLessonFragment_smallTextSize_hasCorrectDimension() { launch(createResumeLessonActivityIntent()).use { diff --git a/app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt b/app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt index 2fa83f33009..29dde65b725 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/topic/revisioncard/RevisionCardFragmentTest.kt @@ -231,7 +231,7 @@ class RevisionCardFragmentTest { } } - @Test @Config(qualifiers = "w360dp-h640dp-xxhdpi") + @Test @RunOn(TestPlatform.ROBOLECTRIC) fun testRevisionCard_extraLargeTextSize_hasCorrectDimension() { launch( @@ -253,7 +253,7 @@ class RevisionCardFragmentTest { } } - @Test @Config(qualifiers = "w360dp-h640dp-xxhdpi") + @Test @RunOn(TestPlatform.ROBOLECTRIC) fun testRevisionCard_largeTextSize_hasCorrectDimension() { launch( @@ -275,7 +275,7 @@ class RevisionCardFragmentTest { } } - @Test @Config(qualifiers = "w360dp-h640dp-xxhdpi") + @Test @RunOn(TestPlatform.ROBOLECTRIC) fun testRevisionCard_mediumTextSize_hasCorrectDimension() { launch( @@ -299,7 +299,7 @@ class RevisionCardFragmentTest { } } - @Test @Config(qualifiers = "w360dp-h640dp-xxhdpi") + @Test @RunOn(TestPlatform.ROBOLECTRIC) fun testRevisionCard_smallTextSize_hasCorrectDimension() { launch(