tests: harden refresh-hidden-during-build with positive assertion
This commit is contained in:
parent
25b38e633d
commit
653e3212b9
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue