webui: add AP settings and organize config page
This commit is contained in:
@@ -329,3 +329,26 @@ def test_cargo_ap_password_is_not_returned_by_get_config_ap():
|
||||
|
||||
assert 'response["password_set"]' in get_body
|
||||
assert 'response["password"]' not in get_body
|
||||
|
||||
|
||||
def test_embedded_webui_has_ap_settings_controls():
|
||||
source = firmware_source()
|
||||
|
||||
assert "Access Point" in source
|
||||
assert 'id="apSsidInput"' in source
|
||||
assert 'id="apPasswordInput"' in source
|
||||
assert "function saveApConfig()" in source
|
||||
assert 'api("/config/ap")' in source
|
||||
assert "toggleApPassword" in source
|
||||
assert "renderApConfig(data)" in source
|
||||
assert "Dashboard auto-migration is planned but not implemented yet" in source
|
||||
|
||||
|
||||
def test_embedded_webui_config_page_is_grouped():
|
||||
source = firmware_source()
|
||||
|
||||
assert "configGroupTitle" in source
|
||||
assert "Home / Starlink WiFi" in source
|
||||
assert "Relay Outputs" in source
|
||||
assert "Temperature Assignment" in source
|
||||
assert "Maintenance" in source
|
||||
|
||||
Reference in New Issue
Block a user