webui: preserve config edits during polling

This commit is contained in:
2026-06-08 09:13:24 -06:00
parent 730da5482f
commit c43f121dc8
2 changed files with 50 additions and 3 deletions
+14
View File
@@ -460,3 +460,17 @@ def test_temp_config_lookup_is_available_to_http_handlers():
helper_pos = source.index("int findTempConfigIndexById(")
first_uart_guard_pos = source.index("#if DASHBOARD_UART_ENABLED")
assert helper_pos < first_uart_guard_pos
def test_embedded_webui_preserves_config_input_while_polling():
source = firmware_source()
assert "const configTouched={};" in source
assert "function markConfigFieldTouched(id)" in source
assert "function setConfigValue(id,value)" in source
assert "document.activeElement===el" in source
assert 'document.addEventListener("input"' in source
assert 'setConfigValue("apSsidInput"' in source
assert 'setConfigValue("deviceNameInput"' in source
assert 'setConfigValue("bmsNameInput"' in source
assert 'setConfigValue("tempEnabledCount"' in source