Skip to content

Commit

Permalink
ui preview: keyboard (commaai#33520)
Browse files Browse the repository at this point in the history
keyboard
  • Loading branch information
maxime-desroches authored Sep 9, 2024
1 parent 762492b commit 838746c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ui_preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
run: >-
sudo apt-get install -y imagemagick
scenes="homescreen settings_device offroad_alert update_available prime onroad onroad_sidebar onroad_wide onroad_wide_sidebar onroad_alert_small onroad_alert_mid onroad_alert_full driver_camera body"
scenes="homescreen settings_device offroad_alert update_available prime onroad onroad_sidebar onroad_wide onroad_wide_sidebar onroad_alert_small onroad_alert_mid onroad_alert_full driver_camera body keyboard"
A=($scenes)
DIFF=""
Expand Down
11 changes: 10 additions & 1 deletion selfdrive/ui/tests/test_ui/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ def setup_body(click, pm: PubMaster):
DATA['carState'].carState.fuelGauge = 50.0
setup_onroad(click, pm)

def setup_keyboard(click, pm: PubMaster):
setup_settings_device(click, pm)
click(250, 575)
click(2020, 218)
click(1830, 80)
click(2035, 808)
click(90, 480)

def setup_driver_camera(click, pm: PubMaster):
setup_settings_device(click, pm)
click(1950, 435)
Expand Down Expand Up @@ -143,7 +151,8 @@ def setup_pair_device(click, pm: PubMaster):
"driver_camera": setup_driver_camera,
"body": setup_body,
"offroad_alert": setup_offroad_alert,
"update_available": setup_update_available
"update_available": setup_update_available,
"keyboard": setup_keyboard
}

TEST_DIR = pathlib.Path(__file__).parent
Expand Down

0 comments on commit 838746c

Please sign in to comment.