Add relay enable toggles to WebUI
This commit is contained in:
@@ -248,6 +248,8 @@ def test_relay_set_contract_fixtures_and_firmware_errors():
|
||||
source = firmware_source()
|
||||
assert '"invalid_json"' in source
|
||||
assert '"unknown_relay"' in source
|
||||
assert "relay_disabled" in source
|
||||
assert "relayIsEnabled" in source
|
||||
|
||||
|
||||
def test_relay_api_is_output_count_agnostic():
|
||||
@@ -259,6 +261,7 @@ def test_relay_api_is_output_count_agnostic():
|
||||
assert 'relay["hardware_channel"] = appConfig.relays[i].hardwareChannel;' in source
|
||||
assert 'relay["available"] = appConfig.relays[i].available;' in source
|
||||
assert 'relays.state[index] = enabled;' in source
|
||||
assert '!appConfig.relays[index].enabled' in source
|
||||
assert 'relays.relay1' not in source
|
||||
assert 'relays.relay2' not in source
|
||||
|
||||
|
||||
Reference in New Issue
Block a user