Split dashboard into home page and battery list page
This commit is contained in:
@@ -314,7 +314,7 @@ def test_poll_handles_api_error_gracefully(ha_app, ha_client_f):
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
def test_dashboard_shows_ha_column_when_enabled(ha_client_f):
|
||||
resp = ha_client_f.get("/")
|
||||
resp = ha_client_f.get("/battery/")
|
||||
assert resp.status_code == 200
|
||||
assert b"ha-pct" in resp.data
|
||||
|
||||
@@ -351,7 +351,7 @@ def test_dashboard_no_warning_for_high_percentage(ha_app, ha_client_f):
|
||||
s.commit()
|
||||
s.close()
|
||||
|
||||
resp = ha_client_f.get("/")
|
||||
resp = ha_client_f.get("/battery/")
|
||||
assert b"85%" in resp.data
|
||||
# badge-warning should NOT appear for this battery's percentage
|
||||
# (may still appear in page for other reasons, so check row contains 85% but not warning badge near it)
|
||||
|
||||
Reference in New Issue
Block a user