summaryrefslogtreecommitdiff
path: root/wasp/boards
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2021-01-12 20:27:52 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-01-12 20:27:52 (GMT)
commitcca72ef348824b185f28601a2ffd3d45ccacf76c (patch)
treec57f3ed2482a3a64ab3588e2dbe6acbb1505957e /wasp/boards
parent05310a82f8bb8e5df07e1c393e0f602ae5d0de9d (diff)
apps: settings: Allow date and time to be set on the watch
Currently many first-time users excitedly install wasp-os and then struggle to set the time using the various BLE based methods (REPL, wasptool, GadgetBridge, etc). This results in "is there another way to set the time" being *the* frequently asked question. Whilst getting the BLE tools is highly recommened to get the best from wasp-os we can delivery a better out-of-the-box experience for first time users is we provide on board date/time setting. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/boards')
-rw-r--r--wasp/boards/simulator/test_smoke.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/wasp/boards/simulator/test_smoke.py b/wasp/boards/simulator/test_smoke.py
index c9f928b..bc33eb7 100644
--- a/wasp/boards/simulator/test_smoke.py
+++ b/wasp/boards/simulator/test_smoke.py
@@ -2,6 +2,7 @@ import pytest
import time
import wasp
import apps.testapp
+import apps.settings
def step():
wasp.system._tick()
@@ -139,3 +140,22 @@ def test_selftest_crash(system):
except:
pass
system.step()
+
+def test_settings(system):
+ """Walk though each screen in the setting application.
+
+ This is a simple "does it crash" test and the only thing we do to stimulate
+ the app is press in the centre of the screen.
+ """
+ system.switch(apps.settings.SettingsApp())
+ system.step()
+
+ start_point = system.app._current_setting
+
+ for i in range(len(system.app._settings)):
+ wasp.watch.touch.press(120, 120)
+ system.step()
+ wasp.watch.touch.swipe('down')
+ system.step()
+
+ assert(start_point == system.app._current_setting)