Require suggestion before entering vote phase
This commit is contained in:
@@ -78,7 +78,7 @@ public class VoteTests
|
||||
await using var factory = new TestWebApplicationFactory();
|
||||
var client = factory.CreateClientWithCookies();
|
||||
await client.RegisterAsync("invalid");
|
||||
await client.PostAsJsonAsync("/api/me/phase/next", new { });
|
||||
await client.AdvanceToVoteAsync("Invalid seed");
|
||||
|
||||
var resp = await client.PostAsJsonAsync("/api/votes", new
|
||||
{
|
||||
@@ -152,7 +152,7 @@ public class VoteTests
|
||||
await using var factory = new TestWebApplicationFactory();
|
||||
var admin = factory.CreateClientWithCookies();
|
||||
await admin.RegisterAsync("admin", admin: true);
|
||||
await admin.PostAsJsonAsync("/api/me/phase/next", new { });
|
||||
await admin.AdvanceToVoteAsync("Admin link seed");
|
||||
|
||||
var player = factory.CreateClientWithCookies();
|
||||
await player.RegisterAsync("linker");
|
||||
@@ -189,7 +189,7 @@ public class VoteTests
|
||||
await using var factory = new TestWebApplicationFactory();
|
||||
var admin = factory.CreateClientWithCookies();
|
||||
await admin.RegisterAsync("admin", admin: true);
|
||||
await admin.PostAsJsonAsync("/api/me/phase/next", new { });
|
||||
await admin.AdvanceToVoteAsync("Admin chain seed");
|
||||
|
||||
var player = factory.CreateClientWithCookies();
|
||||
await player.RegisterAsync("chain");
|
||||
|
||||
Reference in New Issue
Block a user