feat(delizia): swipe to go back on confirm_value

[no changelog]
This commit is contained in:
Ioan Bizău
2025-12-02 17:01:55 +01:00
committed by Ioan Bizău
parent d14eeca9f7
commit 90e30e57ca
7 changed files with 99 additions and 37 deletions

View File

@@ -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

View File

@@ -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