Updated on 2026-08-14
This commit is contained in:
parent
9b6ed88d78
commit
a434e954df
1 changed files with 5 additions and 4 deletions
|
|
@ -490,11 +490,12 @@ fun BaseTestCase.confirmSwapByHolding(accessCode: String? = null) {
|
|||
}
|
||||
}
|
||||
|
||||
/** Holds the last BASE_BUTTON to confirm a transfer; the caller asserts the outcome (transfer mode has no in-progress marker to wait on). */
|
||||
/** Holds the Transfer confirm button; the caller asserts the outcome (transfer mode has no in-progress marker to wait on). */
|
||||
fun BaseTestCase.holdToConfirmTransfer() {
|
||||
val buttons = composeTestRule.onAllNodes(hasTestTag(BaseButtonTestTags.BUTTON))
|
||||
val confirmButton = buttons[buttons.fetchSemanticsNodes().lastIndex]
|
||||
confirmButton.performTouchInput { longClick(durationMillis = HOLD_DURATION_MS) }
|
||||
composeTestRule.onNode(
|
||||
hasTestTag(BaseButtonTestTags.BUTTON) and
|
||||
hasText(getResourceString(CoreUiR.string.swapping_transfer_action)),
|
||||
).performTouchInput { longClick(durationMillis = HOLD_DURATION_MS) }
|
||||
waitForIdle()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue