UI: lås opret-session knap under aktiv handling/opdatering (#127)
This commit is contained in:
@@ -773,6 +773,8 @@ class UiScreenTests(TestCase):
|
||||
response = self.client.get(reverse("lobby:host_screen"))
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertContains(response, "Host panel")
|
||||
self.assertContains(response, "id=\"createSessionBtn\"")
|
||||
self.assertContains(response, "id=\"createSessionHint\"")
|
||||
self.assertContains(response, "saveHostContext")
|
||||
self.assertContains(response, "restoreHostContext")
|
||||
self.assertContains(response, "id=\"showQuestionBtn\"")
|
||||
@@ -793,6 +795,10 @@ class UiScreenTests(TestCase):
|
||||
self.assertContains(response, "categorySelect.disabled=hostActionInFlight||sessionDetailInFlight||!hasCode||phase!==\"lobby\"")
|
||||
self.assertContains(response, "hostActionInFlight")
|
||||
self.assertContains(response, "withHostActionLock")
|
||||
self.assertContains(response, "updateCreateSessionState")
|
||||
self.assertContains(response, "btn.disabled=hostActionInFlight||sessionDetailInFlight")
|
||||
self.assertContains(response, "Opret session er låst mens en host-handling kører.")
|
||||
self.assertContains(response, "Opret session er låst mens session-opdatering kører.")
|
||||
self.assertContains(response, "Handling kører… afvent svar før næste klik.")
|
||||
self.assertContains(response, "Session-data ikke opdateret endnu.")
|
||||
self.assertContains(response, "Sidst opdateret:")
|
||||
|
||||
Reference in New Issue
Block a user