-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compatible with Ladybug android studio now
- Loading branch information
1 parent
5ba81d3
commit 4de5418
Showing
10 changed files
with
214 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,29 +9,29 @@ import androidx.compose.ui.test.performClick | |
import androidx.compose.ui.test.performTextClearance | ||
import androidx.compose.ui.test.performTextInput | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import org.junit.Assert.* | ||
import org.junit.Assert.assertFalse | ||
import org.junit.Assert.assertTrue | ||
import org.junit.Before | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(AndroidJUnit4::class) | ||
class RegistrationKtTest{ | ||
class RegistrationKtTest { | ||
|
||
@get:Rule | ||
val composeTestRule = createComposeRule() | ||
|
||
@Before | ||
fun setup() { | ||
composeTestRule.setContent { | ||
RegistrationForm{ | ||
|
||
RegistrationForm { | ||
} | ||
} | ||
} | ||
|
||
@Test | ||
fun verifyAllViewExits(){ | ||
fun verifyAllViewExits() { | ||
composeTestRule.apply { | ||
onNodeWithTag("Register").assertExists() | ||
onNodeWithText("Username").assertExists() | ||
|
@@ -44,7 +44,7 @@ class RegistrationKtTest{ | |
} | ||
|
||
@Test | ||
fun verifyEmailValidationWithValidEmail(){ | ||
fun verifyEmailValidationWithValidEmail() { | ||
val validEmail = "[email protected]" | ||
|
||
composeTestRule.onNodeWithText("Email").apply { | ||
|
@@ -57,7 +57,7 @@ class RegistrationKtTest{ | |
} | ||
|
||
@Test | ||
fun verifyEmailValidationWithInvalidEmail(){ | ||
fun verifyEmailValidationWithInvalidEmail() { | ||
val invalidEmail = "invalidEmail" | ||
val errorMsg = "Input proper email id" | ||
|
||
|
@@ -71,7 +71,7 @@ class RegistrationKtTest{ | |
} | ||
|
||
@Test | ||
fun verifyConfirmPasswordValidationWithValidPassword(){ | ||
fun verifyConfirmPasswordValidationWithValidPassword() { | ||
val validConfirmPassword = "" | ||
val errorMsg = "" | ||
|
||
|
@@ -85,7 +85,7 @@ class RegistrationKtTest{ | |
} | ||
|
||
@Test | ||
fun verifyConfirmPasswordValidationWithInvalidPassword(){ | ||
fun verifyConfirmPasswordValidationWithInvalidPassword() { | ||
val validConfirmPassword = "password" | ||
val errorMsg = "Password is not matched" | ||
|
||
|
@@ -99,7 +99,7 @@ class RegistrationKtTest{ | |
} | ||
|
||
@Test | ||
fun verifyButtonClick(){ | ||
fun verifyButtonClick() { | ||
val userName = "user" | ||
val email = "[email protected]" | ||
val mobile = "123-456-789" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#Tue Apr 11 20:11:17 IST 2023 | ||
#Tue Oct 22 01:05:09 IST 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.