mirror of
https://github.com/trezor/trezor-firmware.git
synced 2026-02-20 00:33:30 +01:00
feat(delizia): swipe to go back on confirm_value
[no changelog]
This commit is contained in:
@@ -158,7 +158,7 @@ def test_one_one_fee(session: Session):
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.models("t3w1")
|
||||
@pytest.mark.models("t3w1", "t3t1")
|
||||
def test_one_one_fee_back_from_amount(session: Session):
|
||||
# input tx: 0dac366fd8a67b2a89fbb0d31086e7acded7a5bbf9ef9daa935bc873229ef5b5
|
||||
|
||||
|
||||
@@ -1208,17 +1208,50 @@ class InputFlowSignTxBackFromAmount(InputFlowBase):
|
||||
def __init__(self, client: Client):
|
||||
super().__init__(client)
|
||||
|
||||
def input_flow_eckhart(self) -> BRGeneratorType:
|
||||
yield # confirm address
|
||||
self.debug.read_layout()
|
||||
self.debug.click(self.debug.screen_buttons.ok())
|
||||
def input_flow_delizia(self) -> BRGeneratorType:
|
||||
yield
|
||||
layout = self.debug.read_layout()
|
||||
assert TR.words__address in layout.title()
|
||||
assert TR.words__recipient + " #1" in layout.title()
|
||||
self.debug.swipe_up()
|
||||
|
||||
yield # confirm amount
|
||||
self.debug.read_layout()
|
||||
self.debug.click(self.debug.screen_buttons.cancel())
|
||||
yield
|
||||
layout = self.debug.read_layout()
|
||||
assert TR.words__amount in layout.title()
|
||||
assert TR.words__recipient + " #1" in layout.title()
|
||||
self.debug.swipe_down()
|
||||
|
||||
yield
|
||||
layout = self.debug.read_layout()
|
||||
assert TR.words__address in layout.title()
|
||||
assert TR.words__recipient + " #1" in layout.title()
|
||||
self.debug.swipe_up()
|
||||
|
||||
yield
|
||||
self.debug.read_layout()
|
||||
self.debug.swipe_up()
|
||||
|
||||
yield
|
||||
self.debug.read_layout()
|
||||
self.debug.press_yes()
|
||||
|
||||
def input_flow_eckhart(self) -> BRGeneratorType:
|
||||
yield
|
||||
layout = self.debug.read_layout()
|
||||
assert TR.words__send in layout.title()
|
||||
assert TR.words__recipient + " #1" in layout.title()
|
||||
self.debug.click(self.debug.screen_buttons.ok())
|
||||
|
||||
yield
|
||||
layout = self.debug.read_layout()
|
||||
assert TR.words__amount in layout.text_content()
|
||||
assert TR.words__recipient + " #1" in layout.title()
|
||||
self.debug.click(self.debug.screen_buttons.cancel())
|
||||
|
||||
yield
|
||||
layout = self.debug.read_layout()
|
||||
assert TR.words__send in layout.title()
|
||||
assert TR.words__recipient + " #1" in layout.title()
|
||||
self.debug.click(self.debug.screen_buttons.ok())
|
||||
|
||||
yield
|
||||
|
||||
Reference in New Issue
Block a user