]> git.cworth.org Git - lmno-server/blobdiff - test
Add failing test for list of judging players when judging phase begins
[lmno-server] / test
diff --git a/test b/test
index 45dbbe32fbdfc943e445d77b387b279b4c0de252..703f005cfce3ec707f237b5df74321214eae8c25 100755 (executable)
--- a/test
+++ b/test
@@ -742,6 +742,18 @@ result=$(echo $(empathy_ambiguities alice))
 test "$result" != "null"
 TEST_END
 
+# Usage: empathy_players_judging <player_name>
+empathy_players_judging()
+{
+    empathy_get_event $1 game-state | jq .players_judging[]
+}
+
+TEST "Verify active players listed as judging"
+# echo here is to strip newlines
+result=$(echo $(empathy_players_judging alice))
+test "$result" = '"alice" "bob" "charlie"'
+TEST_END
+
 TEST "Submit word groups from majority"
 empathy_judged alice $prompt_id '[]' >/dev/null
 result=$(empathy_judged bob $prompt_id '[]')