Skip to content

Commit

Permalink
fix: change function names for editProfileTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Harrish92 committed Nov 6, 2024
1 parent 8aacca8 commit c9702af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class EditProfileTest {
}

@Test
fun saveInvalidProfileNoName() {
fun editInvalidProfileNoName() {
composeTestRule.onNodeWithTag(EditProfileScreen.EMAIL_FIELD).performTextClearance()
composeTestRule.onNodeWithTag(EditProfileScreen.NAME_FIELD).performTextClearance()
composeTestRule.onNodeWithTag(EditProfileScreen.DOB_FIELD).performTextClearance()
Expand All @@ -98,7 +98,7 @@ class EditProfileTest {
}

@Test
fun saveInvalidProfileNoDOB() {
fun editInvalidProfileNoDOB() {
composeTestRule.onNodeWithTag(EditProfileScreen.EMAIL_FIELD).performTextClearance()
composeTestRule.onNodeWithTag(EditProfileScreen.NAME_FIELD).performTextClearance()
composeTestRule.onNodeWithTag(EditProfileScreen.DOB_FIELD).performTextClearance()
Expand All @@ -115,7 +115,7 @@ class EditProfileTest {
}

@Test
fun saveInvalidProfileNoDescription() {
fun editInvalidProfileNoDescription() {
composeTestRule.onNodeWithTag(EditProfileScreen.EMAIL_FIELD).performTextClearance()
composeTestRule.onNodeWithTag(EditProfileScreen.NAME_FIELD).performTextClearance()
composeTestRule.onNodeWithTag(EditProfileScreen.DOB_FIELD).performTextClearance()
Expand All @@ -130,7 +130,7 @@ class EditProfileTest {
}

@Test
fun saveInvalidProfileNoEmail() {
fun editInvalidProfileNoEmail() {
composeTestRule.onNodeWithTag(EditProfileScreen.EMAIL_FIELD).performTextClearance()
composeTestRule.onNodeWithTag(EditProfileScreen.NAME_FIELD).performTextClearance()
composeTestRule.onNodeWithTag(EditProfileScreen.DOB_FIELD).performTextClearance()
Expand All @@ -145,7 +145,7 @@ class EditProfileTest {
}

@Test
fun saveInvalidProfileAllEmptyFields() {
fun editInvalidProfileAllEmptyFields() {
composeTestRule.onNodeWithTag(EditProfileScreen.EMAIL_FIELD).performTextClearance()
composeTestRule.onNodeWithTag(EditProfileScreen.NAME_FIELD).performTextClearance()
composeTestRule.onNodeWithTag(EditProfileScreen.DOB_FIELD).performTextClearance()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ private fun validateEmail(email: String): String {
return when {
email.isEmpty() -> "Please enter an email"
!email.contains("@") -> "Email must contain @"
else -> {
""
}
else -> ""
}
}

0 comments on commit c9702af

Please sign in to comment.