From 55b87b4a9d6d8dab1e91cb4cde6a49c82cfb85d6 Mon Sep 17 00:00:00 2001 From: Tangem Date: Mon, 6 Oct 2025 16:15:18 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../com/tangem/scenarios/CheckMainScreenScenarios.kt | 5 +++++ .../kotlin/com/tangem/tests/StakingTest.kt | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/app/src/androidTest/kotlin/com/tangem/scenarios/CheckMainScreenScenarios.kt b/app/src/androidTest/kotlin/com/tangem/scenarios/CheckMainScreenScenarios.kt index b0ba1c71d8..0c3430dc3c 100644 --- a/app/src/androidTest/kotlin/com/tangem/scenarios/CheckMainScreenScenarios.kt +++ b/app/src/androidTest/kotlin/com/tangem/scenarios/CheckMainScreenScenarios.kt @@ -1,6 +1,8 @@ package com.tangem.scenarios import com.tangem.common.BaseTestCase +import com.tangem.common.extensions.SwipeDirection +import com.tangem.common.extensions.swipeVertical import com.tangem.screens.onMainScreen import io.qameta.allure.kotlin.Allure.step @@ -43,6 +45,9 @@ fun BaseTestCase.checkSingleCurrencyMainScreen( step("Assert 'Market Price' title equals $cardBlockchain Market Price") { onMainScreen { marketPriceText.assertTextContains("$cardBlockchain Market Price") } } + step("Swipe up") { + swipeVertical(SwipeDirection.UP) + } if (withTransactions) { step("Assert 'Transactions' block is displayed") { onMainScreen { transactionsExplorerText.assertIsDisplayed() } diff --git a/app/src/androidTest/kotlin/com/tangem/tests/StakingTest.kt b/app/src/androidTest/kotlin/com/tangem/tests/StakingTest.kt index 5eb2c98591..8bbb02ebab 100644 --- a/app/src/androidTest/kotlin/com/tangem/tests/StakingTest.kt +++ b/app/src/androidTest/kotlin/com/tangem/tests/StakingTest.kt @@ -2,7 +2,9 @@ package com.tangem.tests import com.tangem.common.BaseTestCase import com.tangem.common.constants.TestConstants.TOTAL_BALANCE +import com.tangem.common.extensions.SwipeDirection import com.tangem.common.extensions.clickWithAssertion +import com.tangem.common.extensions.swipeVertical import com.tangem.common.utils.resetWireMockScenarioState import com.tangem.common.utils.setWireMockScenarioState import com.tangem.screens.* @@ -44,6 +46,9 @@ class StakingTest : BaseTestCase() { step("Assert 'Organize tokens' button is displayed") { onMainScreen { organizeTokensButton().assertIsDisplayed() } } + step("Swipe up") { + swipeVertical(SwipeDirection.UP) + } step("Click on token with name: '$tokenTitle'") { onMainScreen { tokenWithTitleAndAddress(tokenTitle).clickWithAssertion() } } @@ -100,6 +105,9 @@ class StakingTest : BaseTestCase() { step("Assert 'Organize tokens' button is displayed") { onMainScreen { organizeTokensButton().assertIsDisplayed() } } + step("Swipe up") { + swipeVertical(SwipeDirection.UP) + } step("Click on token with name: '$tokenTitle'") { onMainScreen { tokenWithTitleAndAddress(tokenTitle).clickWithAssertion() } } @@ -252,6 +260,9 @@ class StakingTest : BaseTestCase() { step("Assert 'Organize tokens' button is displayed") { onMainScreen { organizeTokensButton().assertIsDisplayed() } } + step("Swipe up") { + swipeVertical(SwipeDirection.UP) + } step("Click on token with name: '$tokenTitle'") { onMainScreen { tokenWithTitleAndAddress(tokenTitle).clickWithAssertion() } }