diff --git a/app/src/sharedTest/java/org/oppia/android/app/profileprogress/ProfilePictureActivityTest.kt b/app/src/sharedTest/java/org/oppia/android/app/profileprogress/ProfilePictureActivityTest.kt index 2d703afe7eb..6b1393adbff 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/profileprogress/ProfilePictureActivityTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/profileprogress/ProfilePictureActivityTest.kt @@ -102,7 +102,7 @@ class ProfilePictureActivityTest { } @Test - fun testProfilePictureActivity_userImage_isDisplayedSuccessfully() { + fun testProfilePictureActivity_userImageIsDisplayed() { launch(createProfilePictureActivityIntent(internalProfileId)).use { onView(withId(R.id.profile_picture_image_view)).check(matches(isDisplayed())) } diff --git a/app/src/sharedTest/java/org/oppia/android/app/profileprogress/ProfileProgressFragmentTest.kt b/app/src/sharedTest/java/org/oppia/android/app/profileprogress/ProfileProgressFragmentTest.kt index daa4be77e92..d2f543389c3 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/profileprogress/ProfileProgressFragmentTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/profileprogress/ProfileProgressFragmentTest.kt @@ -163,7 +163,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragment_configurationChange_checkProfileName_profileNameIsCorrect() { + fun testProfileProgressFragment_configChange_checkProfileName_profileNameIsCorrect() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() onView(isRoot()).perform(orientationLandscape()) @@ -176,7 +176,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragment_openProfilePictureEditDialog() { + fun testProfileProgressFragment_profilePictureEditDialogIsDisplayed() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() clickProfileProgressItem(itemPosition = 0, targetViewId = R.id.profile_edit_image) @@ -186,7 +186,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragment_openProfilePictureEditDialog_configurationChange_dialogIsStillOpen() { // ktlint-disable max-line-length + fun testProfileProgressFragment_openProfilePictureEditDialog_configChange_dialogIsStillOpen() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() clickProfileProgressItem(itemPosition = 0, targetViewId = R.id.profile_edit_image) @@ -215,7 +215,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragment_imageSelectAvatar_changeOrientation_checkGalleryIntent() { + fun testProfileProgressFragment_imageSelectAvatar_configChange_checkGalleryIntent() { val expectedIntent: Matcher = allOf( hasAction(Intent.ACTION_PICK), hasData(MediaStore.Images.Media.EXTERNAL_CONTENT_URI) @@ -240,7 +240,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragmentNoProgress_recyclerViewItem0_checkOngoingTopicsCount_countIsZero() { // ktlint-disable max-line-length + fun testProfileProgressFragment_noProgress_ongoingTopicCountIsZero() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() verifyItemDisplayedOnProfileProgressListItem( @@ -252,7 +252,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragmentWithProgress_recyclerViewItem0_checkOngoingTopicsCount_countIsTwo() { // ktlint-disable max-line-length */ + fun testProfileProgressFragment_twoPartialStoryProgress_ongoingTopicCountIsTwo() { storyProgressTestHelper.markPartialTopicProgressForFractions( profileId, timestampOlderThanAWeek = false @@ -273,7 +273,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragmentWithProgress_change_configuration_recyclerViewItem0_checkOngoingTopicsCount_countIsTwo() { // ktlint-disable max-line-length + fun testProfileProgressFragment_configChange_twoPartialStoryProgress_ongoingTopicCountIsTwo() { storyProgressTestHelper.markPartialTopicProgressForFractions( profileId, timestampOlderThanAWeek = false @@ -296,7 +296,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragmentNoProgress_recyclerViewItem0_checkOngoingTopicsString_descriptionIsCorrect() { // ktlint-disable max-line-length + fun testProfileProgressFragment_noProgress_ongoingTopicDescriptionIsCorrect() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() verifyItemDisplayedOnProfileProgressListItem( @@ -308,7 +308,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragmentWithProgress_recyclerViewItem0_checkOngoingTopicsString_descriptionIsCorrect() { // ktlint-disable max-line-length + fun testProfileProgressFragment_twoPartialStoryProgress_ongoingTopicDescriptionIsCorrect() { storyProgressTestHelper.markPartialTopicProgressForFractions( profileId, timestampOlderThanAWeek = false @@ -329,7 +329,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragmentWithProgress_changeConfiguration_recyclerViewItem0_checkOngoingTopicsString_descriptionIsCorrect() { // ktlint-disable max-line-length + fun testProfileProgressFragment_configChange_ongoingTopicDescriptionIsCorrect() { storyProgressTestHelper.markPartialTopicProgressForFractions( profileId, timestampOlderThanAWeek = false @@ -352,7 +352,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragmentNoProgress_recyclerViewItem0_checkCompletedStoriesCount_countIsZero() { // ktlint-disable max-line-length + fun testProfileProgressFragment_noProgress_completedStoriesCountIsZero() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() verifyItemDisplayedOnProfileProgressListItem( @@ -364,7 +364,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragmentWithProgress_recyclerViewItem0_checkCompletedStoriesCount_countIsTwo() { // ktlint-disable max-line-length + fun testProfileProgressFragment_twoPartialStoryProgress_completedStoriesCountIsTwo() { storyProgressTestHelper.markFullStoryPartialTopicProgressForRatios( profileId, timestampOlderThanAWeek = false @@ -385,7 +385,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragmentNoProgress_recyclerViewItem0_checkCompletedStoriesString_descriptionIsCorrect() { // ktlint-disable max-line-length + fun testProfileProgressFragment_noProgress_completedStoriesDescriptionIsCorrect() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() verifyItemDisplayedOnProfileProgressListItem( @@ -397,7 +397,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressFragmentWithProgress_recyclerViewItem0_checkCompletedStoriesString_descriptionIsCorrect() { // ktlint-disable max-line-length + fun testProfileProgressFragment_twoPartialStoryProgress_completedStoriesDescriptionIsCorrect() { storyProgressTestHelper.markFullStoryPartialTopicProgressForRatios( profileId, timestampOlderThanAWeek = false @@ -418,7 +418,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressActivity_changeConfiguration_recyclerViewItem1_storyNameIsCorrect() { + fun testProfileProgressFragment_configChange_firstStory_storyNameIsCorrect() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() onView(isRoot()).perform(orientationLandscape()) @@ -434,7 +434,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressActivity_recyclerViewItem1_storyNameIsCorrect() { + fun testProfileProgressFragment_firstStory_storyNameIsCorrect() { launch(createProfileProgressActivityIntent(0)).use { testCoroutineDispatchers.runCurrent() onView(withId(R.id.profile_progress_list)).perform( @@ -451,7 +451,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressActivity_recyclerViewItem1_topicNameIsCorrect() { + fun testProfileProgressFragment_firstStory_topicNameIsCorrect() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() onView(withId(R.id.profile_progress_list)).perform( @@ -468,7 +468,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressActivity_clickRecyclerViewItem1_intentIsCorrect() { + fun testProfileProgressFragment_clickFirstStory_opensTopicActivity() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() onView(withId(R.id.profile_progress_list)).perform( @@ -486,7 +486,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressActivity_recyclerViewIndex0_clickViewAll_opensRecentlyPlayedActivity() { + fun testProfileProgressFragment_clickViewAll_opensRecentlyPlayedActivity() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() verifyItemDisplayedOnProfileProgressListItem( @@ -506,7 +506,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressActivityNoProgress_recyclerViewIndex0_clickTopicCount_isNotClickable() { + fun testProfileProgressFragment_noProgress_topicCountIsNotClickable() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() onView( @@ -520,7 +520,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressActivityNoProgress_recyclerViewIndex0_clickStoryCount_isNotClickable() { + fun testProfileProgressFragment_noProgress_storyCountIsNotClickable() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() onView( @@ -534,7 +534,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressActivityNoProgress_recyclerViewIndex0_changeConfiguration_clickStoryCount_isNotClickable() { // ktlint-disable max-line-length + fun testProfileProgressFragment_configChange_noProgress_storyCountIsNotClickable() { launch(createProfileProgressActivityIntent(internalProfileId)).use { testCoroutineDispatchers.runCurrent() onView(isRoot()).perform(orientationLandscape()) @@ -550,7 +550,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressActivityWithProgress_recyclerViewIndex0_clickTopicCount_opensOngoingTopicListActivity() { // ktlint-disable max-line-length + fun testProfileProgressFragment_clickTopicCount_opensOngoingTopicListActivity() { storyProgressTestHelper.markPartialTopicProgressForFractions( profileId = profileId, timestampOlderThanAWeek = false @@ -575,7 +575,7 @@ class ProfileProgressFragmentTest { } @Test - fun testProfileProgressActivityWithProgress_recyclerViewIndex0_clickStoryCount_opensCompletedStoryListActivity() { // ktlint-disable max-line-length + fun testProfileProgressFragment_clickStoryCount_opensCompletedStoryListActivity() { storyProgressTestHelper.markFullStoryPartialTopicProgressForRatios( profileId = profileId, timestampOlderThanAWeek = false