From 19f405e55a0f9dcfce06d568505b5cbdc5034329 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 1 Nov 2026 19:22:37 -0500 Subject: [PATCH] test(homeassistant): the page's wording on who reboots after an OS update (#6755) Co-Authored-By: Claude Opus 5.5 --- tests/integration/test_homeassistant.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/integration/test_homeassistant.py b/tests/integration/test_homeassistant.py index 8cda96b..93a8280 100644 --- a/tests/integration/test_homeassistant.py +++ b/tests/integration/test_homeassistant.py @@ -548,15 +548,19 @@ def test_the_page_shows_storage_used_of_the_total_with_the_percentage(app): assert "Disk free" not in page -def test_the_page_says_an_os_update_waits_on_a_reboot_rather_than_making_one(app): +def test_the_page_says_install_leaves_the_reboot_to_you_and_the_schedule_makes_it(app): + sched = _ha("scheduler") + ha = _ha_with_os_update_waiting() + async def go(): await _clean(app) + await sched.poll(app, transport=ha.transport, connect=FakeSocket({})) web, _ = await _admin_client(app) return await (await web.get("/plugins/homeassistant/")).get_data(as_text=True) page = asyncio.run(go()) - assert "takes effect only once you reboot the machine" in page - assert "reboots the machine" not in page + assert "It takes effect once you reboot the machine" in page + assert "an OS update reboots the machine, with nobody there to watch" in page def test_a_report_it_couldnt_read_leaves_the_last_one_and_home_assistant_still_answers(app):