From a419a27398ee5bf9a21d7ab5add7d2e48faf7d49 Mon Sep 17 00:00:00 2001 From: francelu Date: Thu, 21 Nov 2024 21:46:36 +0100 Subject: [PATCH] test: update `TopAppBar` tests for create and edit profile UIs --- .../java/com/android/periodpals/ui/profile/CreateProfileTest.kt | 1 + .../java/com/android/periodpals/ui/profile/EditProfileTest.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/test/java/com/android/periodpals/ui/profile/CreateProfileTest.kt b/app/src/test/java/com/android/periodpals/ui/profile/CreateProfileTest.kt index a2e96be42..232fb5457 100644 --- a/app/src/test/java/com/android/periodpals/ui/profile/CreateProfileTest.kt +++ b/app/src/test/java/com/android/periodpals/ui/profile/CreateProfileTest.kt @@ -69,6 +69,7 @@ class CreateProfileTest { .assertIsDisplayed() .assertTextEquals("Create Your Account") composeTestRule.onNodeWithTag(TopAppBar.GO_BACK_BUTTON).assertIsNotDisplayed() + composeTestRule.onNodeWithTag(TopAppBar.SETTINGS_BUTTON).assertIsNotDisplayed() composeTestRule.onNodeWithTag(TopAppBar.EDIT_BUTTON).assertIsNotDisplayed() composeTestRule.onNodeWithTag(BottomNavigationMenu.BOTTOM_NAVIGATION_MENU).assertDoesNotExist() diff --git a/app/src/test/java/com/android/periodpals/ui/profile/EditProfileTest.kt b/app/src/test/java/com/android/periodpals/ui/profile/EditProfileTest.kt index b4b1277cc..c921b0a71 100644 --- a/app/src/test/java/com/android/periodpals/ui/profile/EditProfileTest.kt +++ b/app/src/test/java/com/android/periodpals/ui/profile/EditProfileTest.kt @@ -68,6 +68,7 @@ class EditProfileTest { .assertIsDisplayed() .assertTextEquals("Edit Your Profile") composeTestRule.onNodeWithTag(TopAppBar.GO_BACK_BUTTON).assertIsDisplayed() + composeTestRule.onNodeWithTag(TopAppBar.SETTINGS_BUTTON).assertIsNotDisplayed() composeTestRule.onNodeWithTag(TopAppBar.EDIT_BUTTON).assertIsNotDisplayed() composeTestRule.onNodeWithTag(BottomNavigationMenu.BOTTOM_NAVIGATION_MENU).assertDoesNotExist()