From 653e3212b9972ef40d5ca48c0a68473cf40ee4fb Mon Sep 17 00:00:00 2001 From: mwiegand Date: Mon, 11 May 2026 23:13:39 +0200 Subject: [PATCH] tests: harden refresh-hidden-during-build with positive assertion --- l4d2web/tests/test_pages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/l4d2web/tests/test_pages.py b/l4d2web/tests/test_pages.py index eebc6c4..1ddb2e0 100644 --- a/l4d2web/tests/test_pages.py +++ b/l4d2web/tests/test_pages.py @@ -771,3 +771,6 @@ def test_workshop_overlay_refresh_button_hidden_during_build(auth_client_with_se assert response.status_code == 200 assert "Refresh from Steam" not in text + # Positive companion: confirm the build-running guard actually fired, + # otherwise the negative could pass vacuously on a broken page. + assert "building…" in text