Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-09 16:58:32 +02:00
parent 024c5f79ec
commit a524182b7d

View file

@ -259,14 +259,13 @@ class TangemPayTest : BaseTestCase() {
setupHooks( setupHooks(
additionalBeforeSection = { additionalBeforeSection = {
resetWireMockScenarios()
setWireMockScenarioState(TANGEM_PAY_ELIGIBILITY_SCENARIO, eligibilityState) setWireMockScenarioState(TANGEM_PAY_ELIGIBILITY_SCENARIO, eligibilityState)
}, },
additionalAfterSection = { additionalAfterSection = {
resetWireMockScenarioState(TANGEM_PAY_ELIGIBILITY_SCENARIO) resetWireMockScenarioState(TANGEM_PAY_ELIGIBILITY_SCENARIO)
}, },
).run { ).run {
openTangemPay() step("Open Tangem Pay") { openTangemPay() }
step("Click on 'More actions' button") { step("Click on 'More actions' button") {
onTangemPayMainScreen { moreActionsButton.clickWithAssertion() } onTangemPayMainScreen { moreActionsButton.clickWithAssertion() }
} }
@ -295,7 +294,6 @@ class TangemPayTest : BaseTestCase() {
setupHooks( setupHooks(
additionalBeforeSection = { additionalBeforeSection = {
resetWireMockScenarios()
setWireMockScenarioState(TANGEM_PAY_ELIGIBILITY_SCENARIO, eligibilityState) setWireMockScenarioState(TANGEM_PAY_ELIGIBILITY_SCENARIO, eligibilityState)
setWireMockScenarioState(depositAddressScenario, noDepositAddressState) setWireMockScenarioState(depositAddressScenario, noDepositAddressState)
}, },
@ -304,7 +302,7 @@ class TangemPayTest : BaseTestCase() {
resetWireMockScenarioState(depositAddressScenario) resetWireMockScenarioState(depositAddressScenario)
}, },
).run { ).run {
openTangemPay() step("Open Tangem Pay") { openTangemPay() }
step("Click on 'Add funds' button") { step("Click on 'Add funds' button") {
onTangemPayMainScreen { topUpButton.clickWithAssertion() } onTangemPayMainScreen { topUpButton.clickWithAssertion() }
} }