Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-26 19:03:28 +03:00
parent 975b7c4a3b
commit 3145fa383a

View file

@ -15,7 +15,6 @@ import io.github.kakaocup.compose.node.element.KNode
import io.github.kakaocup.kakao.common.utilities.getResourceString
import androidx.compose.ui.test.hasTestTag as withTestTag
import androidx.compose.ui.test.hasText as withText
import androidx.compose.ui.test.hasAnyDescendant as withAnyDescendant
class TokenDetailsPageObject(semanticsProvider: SemanticsNodeInteractionsProvider) :
ComposeScreen<TokenDetailsPageObject>(semanticsProvider = semanticsProvider) {
@ -115,13 +114,10 @@ class TokenDetailsPageObject(semanticsProvider: SemanticsNodeInteractionsProvide
useUnmergedTree = true
}
fun tokenTitle(name: String): KNode {
val titleText = withText(text = name, substring = true)
return child {
hasTestTag(TokenDetailsScreenTestTags.TOKEN_TITLE)
addSemanticsMatcher(titleText or withAnyDescendant(titleText))
useUnmergedTree = true
}
fun tokenTitle(name: String): KNode = child {
hasTestTag(TokenDetailsScreenTestTags.TOKEN_TITLE)
hasAnyDescendant(withText(text = name, substring = true))
useUnmergedTree = true
}
fun networkFeeNotificationMessage(