-
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.
chore: comment out useless classes that was causing problems
Commented out classes `MainScreen` and `SecondScreen` as they are part of the sample app we used as a base and serve no purpose, but were causing problems.
- Loading branch information
1 parent
1319bf1
commit 5eb6fb2
Showing
2 changed files
with
26 additions
and
24 deletions.
There are no files selected for viewing
25 changes: 13 additions & 12 deletions
25
app/src/androidTest/java/com/android/periodpals/screen/MainScreen.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,14 +1,15 @@ | ||
package com.android.periodpals.screen | ||
|
||
import androidx.compose.ui.test.SemanticsNodeInteractionsProvider | ||
import com.android.periodpals.resources.C | ||
import io.github.kakaocup.compose.node.element.ComposeScreen | ||
import io.github.kakaocup.compose.node.element.KNode | ||
|
||
class MainScreen(semanticsProvider: SemanticsNodeInteractionsProvider) : | ||
ComposeScreen<MainScreen>( | ||
semanticsProvider = semanticsProvider, | ||
viewBuilderAction = { hasTestTag(C.Tag.main_screen_container) }) { | ||
|
||
val simpleText: KNode = child { hasTestTag(C.Tag.greeting) } | ||
} | ||
// import androidx.compose.ui.test.SemanticsNodeInteractionsProvider | ||
// import com.android.periodpals.resources.C | ||
// import io.github.kakaocup.compose.node.element.ComposeScreen | ||
// import io.github.kakaocup.compose.node.element.KNode | ||
// | ||
// class MainScreen(semanticsProvider: SemanticsNodeInteractionsProvider) : | ||
// ComposeScreen<MainScreen>( | ||
// semanticsProvider = semanticsProvider, | ||
// viewBuilderAction = { hasTestTag(C.Tag.main_screen_container) }, | ||
// ) { | ||
// | ||
// val simpleText: KNode = child { hasTestTag(C.Tag.greeting) } | ||
// } |
25 changes: 13 additions & 12 deletions
25
app/src/test/java/com/android/periodpals/screen/SecondScreen.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,14 +1,15 @@ | ||
package com.android.periodpals.screen | ||
|
||
import androidx.compose.ui.test.SemanticsNodeInteractionsProvider | ||
import com.android.periodpals.resources.C | ||
import io.github.kakaocup.compose.node.element.ComposeScreen | ||
import io.github.kakaocup.compose.node.element.KNode | ||
|
||
class SecondScreen(semanticsProvider: SemanticsNodeInteractionsProvider) : | ||
ComposeScreen<SecondScreen>( | ||
semanticsProvider = semanticsProvider, | ||
viewBuilderAction = { hasTestTag(C.Tag.second_screen_container) }) { | ||
|
||
val simpleText: KNode = child { hasTestTag(C.Tag.greeting_robo) } | ||
} | ||
// import androidx.compose.ui.test.SemanticsNodeInteractionsProvider | ||
// import com.android.periodpals.resources.C | ||
// import io.github.kakaocup.compose.node.element.ComposeScreen | ||
// import io.github.kakaocup.compose.node.element.KNode | ||
// | ||
// class SecondScreen(semanticsProvider: SemanticsNodeInteractionsProvider) : | ||
// ComposeScreen<SecondScreen>( | ||
// semanticsProvider = semanticsProvider, | ||
// viewBuilderAction = { hasTestTag(C.Tag.second_screen_container) }, | ||
// ) { | ||
// | ||
// val simpleText: KNode = child { hasTestTag(C.Tag.greeting_robo) } | ||
// } |