Updated on 2026-08-14
This commit is contained in:
parent
203b1c52cc
commit
9bde46f408
2 changed files with 2 additions and 6 deletions
|
|
@ -165,10 +165,6 @@ class SwapTokenPageObject(semanticsProvider: SemanticsNodeInteractionsProvider)
|
|||
hasTestTag(SwapTokenScreenTestTags.RECEIVE_FIAT_AMOUNT)
|
||||
}
|
||||
|
||||
val receiveFiatAmountWithPriceImpactWarning: KNode = child {
|
||||
hasTestTag(SwapTokenScreenTestTags.RECEIVE_FIAT_AMOUNT_WITH_PRICE_IMPACT_WARNING)
|
||||
}
|
||||
|
||||
val receiveFiatAmountInformationIcon: KNode = child {
|
||||
hasTestTag(SwapTokenScreenTestTags.RECEIVE_FIAT_AMOUNT_INFORMATION_ICON)
|
||||
useUnmergedTree = true
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ class SwapTokenScreenWarningsTest : BaseTestCase() {
|
|||
flakySafely(WAIT_UNTIL_TIMEOUT_LONG) {
|
||||
onSwapTokenScreen {
|
||||
waitForIdle()
|
||||
receiveFiatAmountWithPriceImpactWarning.assertTextContains("%", substring = true)
|
||||
receiveFiatAmount.assertTextContains("%", substring = true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -288,7 +288,7 @@ class SwapTokenScreenWarningsTest : BaseTestCase() {
|
|||
}
|
||||
}
|
||||
step("Assert fiat amount with warning is displayed") {
|
||||
onSwapTokenScreen { receiveFiatAmountWithPriceImpactWarning.assertTextContains("%", substring = true) }
|
||||
onSwapTokenScreen { receiveFiatAmount.assertTextContains("%", substring = true) }
|
||||
}
|
||||
step("Assert receive amount information icon is displayed") {
|
||||
onSwapTokenScreen { receiveFiatAmountInformationIcon.assertIsDisplayed() }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue