UI: lås kategori-valg udenfor lobby-fasen (#70)
All checks were successful
CI / test-and-quality (push) Successful in 1m42s
CI / test-and-quality (pull_request) Successful in 1m42s

This commit is contained in:
2026-02-28 02:40:07 +01:00
parent 07b5982ac4
commit 1709713bff
2 changed files with 5 additions and 1 deletions

View File

@@ -778,12 +778,15 @@ class UiScreenTests(TestCase):
self.assertContains(response, "id=\"showQuestionBtn\"")
self.assertContains(response, "id=\"mixAnswersBtn\"")
self.assertContains(response, "id=\"hostActionHint\"")
self.assertContains(response, "id=\"categoryGuardHint\"")
self.assertContains(response, "id=\"phaseStatus\"")
self.assertContains(response, "updateHostActionState")
self.assertContains(response, "phaseLabel")
self.assertContains(response, "Opdatér session-status for fasebaserede host-actions.")
self.assertContains(response, "Angiv sessionkode for at aktivere host-actions.")
self.assertContains(response, "Kategori er kun redigérbar i lobby-fasen.")
self.assertContains(response, "categorySelect.disabled=!hasCode||phase!==\"lobby\"")
def test_player_screen_is_public(self):
response = self.client.get(reverse("lobby:player_screen"))