From a0562fa6a44322ce596e04d1c042e09d268da9d8 Mon Sep 17 00:00:00 2001 From: Asger Geel Weirsoee Date: Sat, 28 Feb 2026 00:05:31 +0100 Subject: [PATCH] ui: lock guess submit to rendered answer options --- lobby/templates/lobby/player_screen.html | 5 +++-- lobby/tests.py | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lobby/templates/lobby/player_screen.html b/lobby/templates/lobby/player_screen.html index 68ce98f..50a51bc 100644 --- a/lobby/templates/lobby/player_screen.html +++ b/lobby/templates/lobby/player_screen.html @@ -22,15 +22,16 @@
Klar.
diff --git a/lobby/tests.py b/lobby/tests.py index 1954f4d..270381c 100644 --- a/lobby/tests.py +++ b/lobby/tests.py @@ -782,6 +782,8 @@ class UiScreenTests(TestCase): self.assertContains(response, "session_token") self.assertContains(response, "id=\"answerOptions\"") self.assertContains(response, "renderAnswerOptions") + self.assertContains(response, "availableAnswers") + self.assertContains(response, "invalid_client_guess") class SessionDetailRoundQuestionTests(TestCase):