diff --git a/goodwe_controller/test_maint11.py b/goodwe_controller/test_maint11.py index 8451135..3a27fec 100644 --- a/goodwe_controller/test_maint11.py +++ b/goodwe_controller/test_maint11.py @@ -372,6 +372,9 @@ check("Start is disabled while any battery cycles", and "disabled: !can.start" in JS) check("Start is disabled on a switched-off battery (use false, modes on)", "&& b.use !== false, abort" in JS) +check("each button carries its own flag, and only that flag", + 'id: "bcs-" + i, disabled: !can.start, onclick: ask1("start_dialog"' in JS + and 'id: "bca-" + i, disabled: !can.abort, onclick: ask1("abort_dialog"' in JS) check("a battery counts as cycling when its phase is not idle", 'cycling = (x) => x.maintenance !== "idle"' in JS) check("the old header buttons still post a bare request",