From db13056723c0c13fcf9ea98ed258a619f9654ab8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 16 Nov 2026 17:24:13 +0100 Subject: fix(xbox): a redrawn hold never fires, and start clears the flag A power button rebuilt mid-hold lost its pointerup, so letting go early still turned the console off; hold.js now drops a hold whose button is no longer in the page. status.xbox is written 0 on start, in case a crash left it at 1. The "ago" texts move on each minute, and missing storage names and achievement percentages no longer print null. Co-Authored-By: Claude Opus 5.5 --- tests/test_xbox.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test_xbox.py') diff --git a/tests/test_xbox.py b/tests/test_xbox.py index 8a14bb6..748d0ca 100644 --- a/tests/test_xbox.py +++ b/tests/test_xbox.py @@ -338,6 +338,11 @@ class Tick(Base): x._set_playing({"id": "1234", "name": "Some Game"}) self.assertEqual(self.status.read_text(), "0") + def test_start_clears_a_flag_left_by_a_crash(self): + self.status.write_text("1") + self.xbox(client_id="").start() + self.assertEqual(self.status.read_text(), "0") + def test_stop_writes_zero(self): x = self.xbox() x.tick() -- cgit v1.2.3