test(homeassistant): the page's wording on who reboots after an OS update (#6755)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user