Updated on 2026-08-14
This commit is contained in:
parent
89fb66aa3e
commit
3e95ebf89a
3 changed files with 5 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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() }
|
||||
|
|
|
|||
|
|
@ -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() }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue