From a8fd0121931f64193f43e607a8e8dd0f6daceace Mon Sep 17 00:00:00 2001 From: Asger Geel Weirsoee Date: Sat, 28 Feb 2026 02:21:14 +0100 Subject: [PATCH] UI: fasebaserede host-action guards i hostpanelet (#68) --- lobby/templates/lobby/host_screen.html | 32 +++++++++++++++----------- lobby/tests.py | 8 +++++++ 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/lobby/templates/lobby/host_screen.html b/lobby/templates/lobby/host_screen.html index d898071..d2a733d 100644 --- a/lobby/templates/lobby/host_screen.html +++ b/lobby/templates/lobby/host_screen.html @@ -9,23 +9,29 @@

Kræver mindst 3 spillere i lobbyen.

Spillere i session: ukendt

- +

Fase: ukendt (opdatér session-status).

+ - - - - - + + + + + +

Angiv sessionkode for at aktivere host-actions.

Klar.
diff --git a/lobby/tests.py b/lobby/tests.py index 26e12c9..cadcbd4 100644 --- a/lobby/tests.py +++ b/lobby/tests.py @@ -775,6 +775,14 @@ class UiScreenTests(TestCase): self.assertContains(response, "Host panel") self.assertContains(response, "saveHostContext") self.assertContains(response, "restoreHostContext") + self.assertContains(response, "id=\"showQuestionBtn\"") + self.assertContains(response, "id=\"mixAnswersBtn\"") + self.assertContains(response, "id=\"hostActionHint\"") + 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.") def test_player_screen_is_public(self): response = self.client.get(reverse("lobby:player_screen"))