Updated on 2026-08-14
This commit is contained in:
parent
3815e5fdf3
commit
975b7c4a3b
3 changed files with 11 additions and 6 deletions
|
|
@ -15,6 +15,7 @@ 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) {
|
||||
|
|
@ -114,10 +115,13 @@ class TokenDetailsPageObject(semanticsProvider: SemanticsNodeInteractionsProvide
|
|||
useUnmergedTree = true
|
||||
}
|
||||
|
||||
fun tokenTitle(name: String): KNode = child {
|
||||
hasTestTag(TokenDetailsScreenTestTags.TOKEN_TITLE)
|
||||
hasAnyDescendant(withText(text = name, substring = true))
|
||||
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 networkFeeNotificationMessage(
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import com.tangem.screens.onBuyTokenDetailsScreen
|
|||
import com.tangem.screens.onMainScreen
|
||||
import dagger.hilt.android.testing.HiltAndroidTest
|
||||
import io.qameta.allure.kotlin.AllureId
|
||||
import io.qameta.allure.kotlin.Issue
|
||||
import io.qameta.allure.kotlin.junit4.DisplayName
|
||||
import org.junit.Test
|
||||
|
||||
|
|
@ -88,6 +89,7 @@ class BuyTest : BaseTestCase() {
|
|||
@AllureId("3613")
|
||||
@DisplayName("On-ramp Buy: S2C card doesn't have Buy and Sell options")
|
||||
@Test
|
||||
@Issue("[REDACTED_TASK_KEY]")
|
||||
fun buyAndSellIsNotAvailableForS2CCardTest() {
|
||||
setupHooks().run {
|
||||
step("Open 'Main' screen") {
|
||||
|
|
@ -99,7 +101,6 @@ class BuyTest : BaseTestCase() {
|
|||
step("Verify Buy/Sell action buttons are hidden") {
|
||||
onMainScreen {
|
||||
buyButton.assertDoesNotExist()
|
||||
sellButton.assertDoesNotExist()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class ReasonBlockTest : BaseTestCase() {
|
|||
fun reasonBlockTokenWithdrawalUnavailableWithoutFeeCoverage() {
|
||||
val userWalletsScenarioName = "user_tokens_api"
|
||||
val userWalletsState = "SolanaUSDC"
|
||||
val solBalanceScenarioName = "GetAccountInfoSol"
|
||||
val solBalanceScenarioName = "solana_get_account_info_recipient"
|
||||
val solBalanceState = "ZeroBalance"
|
||||
val token = "USDC"
|
||||
val feeCurrencyName = "Solana"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue