From 45b887a08e6dac09a47264dd9936bf3602cb65bd Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Wed, 18 Sep 2024 12:04:08 +0800 Subject: [PATCH] ci: add toggles to ui report (#33577) add toggles --- .github/workflows/ui_preview.yaml | 2 +- selfdrive/ui/tests/test_ui/run.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ui_preview.yaml b/.github/workflows/ui_preview.yaml index 877951f6232487..7880ecdea6396b 100644 --- a/.github/workflows/ui_preview.yaml +++ b/.github/workflows/ui_preview.yaml @@ -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="" diff --git a/selfdrive/ui/tests/test_ui/run.py b/selfdrive/ui/tests/test_ui/run.py index b6e99190fc3ef8..6f8acb1a537e3c 100644 --- a/selfdrive/ui/tests/test_ui/run.py +++ b/selfdrive/ui/tests/test_ui/run.py @@ -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: @@ -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,