Fix lint warning
This commit is contained in:
parent
d83cc23ee9
commit
5f960880de
2 changed files with 3 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ import org.fnives.test.showcase.compose.screen.auth.AuthScreenTag
|
|||
|
||||
class ComposeLoginRobot(
|
||||
composeTestRule: ComposeTestRule,
|
||||
): ComposeTestRule by composeTestRule {
|
||||
) : ComposeTestRule by composeTestRule {
|
||||
|
||||
fun setUsername(username: String): ComposeLoginRobot = apply {
|
||||
onNodeWithTag(AuthScreenTag.UsernameInput).performTextInput(username)
|
||||
|
|
@ -40,6 +40,7 @@ class ComposeLoginRobot(
|
|||
fun assertLoading(): ComposeLoginRobot = apply {
|
||||
onNodeWithTag(AuthScreenTag.LoadingIndicator).assertIsDisplayed()
|
||||
}
|
||||
|
||||
fun assertNotLoading(): ComposeLoginRobot = apply {
|
||||
onAllNodesWithTag(AuthScreenTag.LoadingIndicator).assertCountEquals(0)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Here is a list of actions we want to do:
|
|||
```kotlin
|
||||
class ComposeLoginRobot(
|
||||
composeTestRule: ComposeTestRule,
|
||||
): ComposeTestRule by composeTestRule {
|
||||
) : ComposeTestRule by composeTestRule {
|
||||
|
||||
fun setUsername(username: String): ComposeLoginRobot = apply {
|
||||
onNodeWithTag(AuthScreenTag.UsernameInput).performTextInput(username)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue