Skip to content

Commit

Permalink
ci: add toggles to ui report (commaai#33577)
Browse files Browse the repository at this point in the history
add toggles
  • Loading branch information
deanlee authored Sep 18, 2024
1 parent 163e740 commit 45b887a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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 keyboard"
scenes="homescreen settings_device settings_toggles 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
6 changes: 6 additions & 0 deletions selfdrive/ui/tests/test_ui/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def setup_homescreen(click, pm: PubMaster):
def setup_settings_device(click, pm: PubMaster):
click(100, 100)

def setup_settings_toggles(click, pm: PubMaster):
setup_settings_device(click, pm)
click(278, 760)
time.sleep(UI_DELAY)

def setup_onroad(click, pm: PubMaster):
vipc_server = VisionIpcServer("camerad")
for stream_type, cam, _ in STREAMS:
Expand Down Expand Up @@ -141,6 +146,7 @@ def setup_pair_device(click, pm: PubMaster):
"prime": setup_homescreen,
"pair_device": setup_pair_device,
"settings_device": setup_settings_device,
"settings_toggles": setup_settings_toggles,
"onroad": setup_onroad,
"onroad_sidebar": setup_onroad_sidebar,
"onroad_alert_small": setup_onroad_alert_small,
Expand Down

0 comments on commit 45b887a

Please sign in to comment.