Public Access
Settings: Install updates, when asked or by itself
Off by default: what runs on the device changes only when its owner said it may (issue #52). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0162FokPdvY2KsS4NBfwyWPk
This commit is contained in:
@@ -67,7 +67,7 @@ void test_every_setting_is_in_one_group() {
|
||||
total += f.menu.count();
|
||||
f.menu.close();
|
||||
}
|
||||
TEST_ASSERT_EQUAL(21, total);
|
||||
TEST_ASSERT_EQUAL(22, total);
|
||||
int i = -1;
|
||||
TEST_ASSERT_TRUE(f.menu.reveal(SettingsMenu::Row::Vpn, i));
|
||||
TEST_ASSERT_EQUAL_STRING("Network", f.menu.title().c_str());
|
||||
@@ -204,6 +204,16 @@ void test_pause_gnss_for_lora_is_off_by_default() {
|
||||
|
||||
// R1, Q165: the device looks for a newer release once a day. It installs nothing by itself, so it
|
||||
// is on unless switched off.
|
||||
void test_installing_updates_by_itself_is_off_by_default() {
|
||||
Fixture f;
|
||||
int row = f.row(SettingsMenu::Row::InstallUpdates);
|
||||
TEST_ASSERT_EQUAL_STRING("Install updates", f.menu.label(row).c_str());
|
||||
TEST_ASSERT_EQUAL_STRING("When asked", f.menu.value(row).c_str());
|
||||
f.menu.toggle(row);
|
||||
TEST_ASSERT_TRUE(f.settings.getBool(Setting::InstallUpdates));
|
||||
TEST_ASSERT_EQUAL_STRING("By itself", f.menu.value(row).c_str());
|
||||
}
|
||||
|
||||
void test_check_for_updates_is_on_by_default() {
|
||||
Fixture f;
|
||||
int row = f.row(SettingsMenu::Row::CheckUpdates);
|
||||
@@ -245,6 +255,7 @@ int main() {
|
||||
RUN_TEST(test_names_are_text_rows_with_their_byte_limits);
|
||||
RUN_TEST(test_pause_gnss_for_lora_is_off_by_default);
|
||||
RUN_TEST(test_check_for_updates_is_on_by_default);
|
||||
RUN_TEST(test_installing_updates_by_itself_is_off_by_default);
|
||||
RUN_TEST(test_gnss_and_coordinate_rows_toggle);
|
||||
RUN_TEST(test_the_debug_console_is_a_page_that_says_off);
|
||||
return UNITY_END();
|
||||
|
||||
Reference in New Issue
Block a user