Skip to content

Commit

Permalink
Merge pull request #118 from trilitech/palmer@functori@bump-ledger-ap…
Browse files Browse the repository at this point in the history
…p-builder-version

 Bump ledger-app-builder version
  • Loading branch information
ajinkyaraj-23 authored Jul 25, 2024
2 parents 2441d38 + c016127 commit 17f3cdb
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions test/utils/navigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,30 +88,6 @@ def next(self) -> None:
"""Pass to the next screen."""
self._center.swipe_left()

# Fixed in Ragger v1.21.0
def tap(self) -> None:
"""Tap on screen."""
if self.firmware == Firmware.STAX:
self.client.finger_touch(*STAX_BUTTON_LOWER_RIGHT)
if self.firmware == Firmware.FLEX:
super().tap()

# Fixed in Ragger v1.21.0
def previous(self) -> None:
"""Tap on screen."""
if self.firmware == Firmware.STAX:
self.client.finger_touch(*STAX_BUTTON_LOWER_MIDDLE)
if self.firmware == Firmware.FLEX:
super().previous()

# Fixed in Ragger v1.21.0
def reject(self) -> None:
"""Tap on reject button."""
if self.firmware == Firmware.STAX:
self.client.finger_touch(*STAX_BUTTON_LOWER_LEFT)
if self.firmware == Firmware.FLEX:
super().reject()

class UseCaseAddressConfirmation(OriginalUseCaseAddressConfirmation):
"""Extension of UseCaseAddressConfirmation for our app."""

Expand Down Expand Up @@ -139,14 +115,6 @@ def show_qr(self) -> None:
"""Tap to show qr code."""
self.client.finger_touch(*self.qr_position)

# Fixed in Ragger v1.21.0
def cancel(self) -> None:
"""Tap on cancel button."""
if self.firmware == Firmware.STAX:
self.client.finger_touch(*STAX_BUTTON_LOWER_LEFT)
if self.firmware == Firmware.FLEX:
super().cancel()


class UseCaseSettings(OriginalUseCaseSettings):
"""Extension of UseCaseSettings for our app."""
Expand All @@ -165,15 +133,6 @@ def exit(self) -> None:
"""Exits settings."""
self.multi_page_exit()

# Fixed in Ragger v1.21.0
STAX_BUTTON_LOWER_MIDDLE_RIGHT = Position(266, 615)
def previous(self) -> None:
"""Tap on cancel button."""
if self.firmware == Firmware.STAX:
self.client.finger_touch(*UseCaseSettings.STAX_BUTTON_LOWER_MIDDLE_RIGHT)
if self.firmware == Firmware.FLEX:
super().previous()

APP_CONTEXT = Path("app_context")


Expand Down

0 comments on commit 17f3cdb

Please sign in to comment.