Require suggestion before entering vote phase
This commit is contained in:
@@ -49,4 +49,11 @@ internal static class TestClientExtensions
|
||||
var me = await client.GetFromJsonAsync<JsonElement>("/api/me");
|
||||
return Guid.Parse(me.GetProperty("id").GetString()!);
|
||||
}
|
||||
|
||||
public static async Task AdvanceToVoteAsync(this HttpClient client, string suggestionName = "Seed game")
|
||||
{
|
||||
await client.CreateSuggestionAsync(suggestionName);
|
||||
var response = await client.PostAsJsonAsync("/api/me/phase/next", new { });
|
||||
response.EnsureSuccessStatusCode();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user