webui: render temperature settings as mobile cards
This commit is contained in:
@@ -538,3 +538,17 @@ def test_embedded_webui_mobile_temperature_config_cards():
|
||||
assert "Clear Assignment" in source
|
||||
assert "Weather Badge" in source
|
||||
assert "@media(max-width:700px)" in source
|
||||
|
||||
|
||||
def test_embedded_webui_temp_config_uses_mobile_cards():
|
||||
source = firmware_source()
|
||||
start = source.index('const tempBox=$("tempConfigList");')
|
||||
end = source.index("async function saveRelayConfig", start)
|
||||
body = source[start:end]
|
||||
|
||||
assert "tempConfigCard" in body
|
||||
assert "Temp Slot " in body
|
||||
assert "Clear Assignment" in body
|
||||
assert "Weather Badge" in body
|
||||
assert "configrow tempConfigRow" not in body
|
||||
assert "Address:" not in body
|
||||
|
||||
Reference in New Issue
Block a user