feat: add player Names Throughout the Game UI

This commit is contained in:
2026-08-30 01:02:34 +03:00
parent 4d9d0db02d
commit dfc6b023f7
12 changed files with 307 additions and 34 deletions
+3
View File
@@ -98,6 +98,9 @@ static void test_sessions_commands_and_state(void) {
assert(response.status == 200U);
char player_2_token[33];
token_from_response(&response, player_2_token);
response = call(&api, HTTP_API_ROUTE_INFO, HTTP_API_GET, NULL, NULL);
assert(response.status == 200U && strstr(response.body, "\"player1Name\":\"Alice\"") != NULL &&
strstr(response.body, "\"player2Name\":\"Bob\"") != NULL);
response = call(&api, HTTP_API_ROUTE_JOIN, HTTP_API_POST,
"{\"name\":\"Watch\",\"requestedRole\":\"spectator\"}", NULL);
assert(response.status == 200U);