Skip to content

Commit

Permalink
chore: comment out useless classes that was causing problems
Browse files Browse the repository at this point in the history
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
charliemangano committed Oct 31, 2024
1 parent 1319bf1 commit 5eb6fb2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
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 app/src/test/java/com/android/periodpals/screen/SecondScreen.kt
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) }
// }

0 comments on commit 5eb6fb2

Please sign in to comment.