-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eed4b8b
commit bc9a297
Showing
8 changed files
with
117 additions
and
25 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
18 changes: 14 additions & 4 deletions
18
.../app_sample/src/androidTest/java/br/com/leandroferreira/app_sample/NoteMenuAndroidTest.kt
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,17 +1,27 @@ | ||
package br.com.leandroferreira.app_sample | ||
|
||
import androidx.compose.ui.test.assertIsDisplayed | ||
import androidx.compose.ui.test.junit4.createComposeRule | ||
import androidx.compose.ui.test.onNodeWithTag | ||
import androidx.compose.ui.test.performClick | ||
import br.com.leandroferreira.app_sample.navigation.NavigationGraph | ||
import org.junit.Rule | ||
import org.junit.Test | ||
import androidx.compose.ui.test.junit4.createAndroidComposeRule | ||
import androidx.test.espresso.Espresso | ||
import br.com.leandroferreira.app_sample.navigation.NavigationActivity | ||
import java.lang.Thread.sleep | ||
|
||
class NoteMenuAndroidTest { | ||
|
||
@get:Rule | ||
val composeTestRule = createAndroidComposeRule<NavigationActivity>() | ||
val composeTestRule = createComposeRule() | ||
|
||
@Test | ||
fun myTest() { | ||
composeTestRule.setContent { | ||
NavigationGraph() | ||
} | ||
|
||
composeTestRule.onNodeWithTag("addNote").performClick() | ||
|
||
composeTestRule.onNodeWithTag("noteEditionScreenTitle").assertIsDisplayed() | ||
} | ||
} |
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