Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-10 17:04:58 +05:00
parent 89fb66aa3e
commit 3e95ebf89a
3 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,6 @@
package com.tangem.screens
import androidx.compose.ui.semantics.SemanticsProperties
import androidx.compose.ui.test.ExperimentalTestApi
import androidx.compose.ui.test.SemanticsMatcher
import androidx.compose.ui.test.SemanticsNodeInteractionsProvider
@ -186,7 +187,8 @@ class MainScreenPageObject(semanticsProvider: SemanticsNodeInteractionsProvider)
}
val totalBalanceText: KNode = child {
hasParent(withTestTag(MainScreenTestTags.WALLET_BALANCE))
hasAnyAncestor(withTestTag(MainScreenTestTags.WALLET_BALANCE))
addSemanticsMatcher(SemanticsMatcher.keyIsDefined(SemanticsProperties.Text))
}
val notificationYesButton: KNode = child {

View file

@ -31,8 +31,8 @@ class TotalBalanceLongTapTest : BaseTestCase() {
}
}
}
step("Assert 'Rename' button is not displayed") {
onMainScreen { totalBalanceMenuRenameWallet.assertIsNotDisplayed() }
step("Assert 'Rename' button is displayed") {
onMainScreen { totalBalanceMenuRenameWallet.assertIsDisplayed() }
}
step("Assert 'Delete' button is not displayed") {
onMainScreen { totalBalanceMenuDeleteWallet.assertIsNotDisplayed() }

View file

@ -90,7 +90,6 @@ class TotalBalanceUpdateTest : BaseTestCase() {
}
step("Click on 'Add' button") {
onDialog { addButton.clickWithAssertion() }
onDialog { addButton.clickWithAssertion() } //TODO: [REDACTED_JIRA]
}
step("Assert 'Continue' is not displayed") {
onDialog { addButton.assertIsNotDisplayed() }