tests: harden refresh-hidden-during-build with positive assertion

This commit is contained in:
mwiegand 2026-05-11 23:13:39 +02:00
parent 25b38e633d
commit 653e3212b9
No known key found for this signature in database

View file

@ -771,3 +771,6 @@ def test_workshop_overlay_refresh_button_hidden_during_build(auth_client_with_se
assert response.status_code == 200 assert response.status_code == 200
assert "Refresh from Steam" not in text 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