Refactor Home UI controls and add dice to campaign log entries
This commit is contained in:
@@ -60,13 +60,16 @@ public sealed class RollVisibilityApiTests : ApiTestBase
|
||||
|
||||
var gmLog = await GetAsync<IReadOnlyList<CampaignLogEntry>>(gmClient, $"/api/campaigns/{campaign.Id}/log");
|
||||
Assert.Equal(2, gmLog.Count);
|
||||
Assert.All(gmLog, entry => Assert.NotEmpty(entry.Dice));
|
||||
|
||||
var playerLog = await GetAsync<IReadOnlyList<CampaignLogEntry>>(playerClient, $"/api/campaigns/{campaign.Id}/log");
|
||||
Assert.Equal(2, playerLog.Count);
|
||||
Assert.All(playerLog, entry => Assert.NotEmpty(entry.Dice));
|
||||
|
||||
var observerLog = await GetAsync<IReadOnlyList<CampaignLogEntry>>(observerClient, $"/api/campaigns/{campaign.Id}/log");
|
||||
Assert.Single(observerLog);
|
||||
Assert.Equal("public", observerLog[0].Visibility);
|
||||
Assert.NotEmpty(observerLog[0].Dice);
|
||||
|
||||
await RegisterAsync(outsiderClient, "outsider", "Password123", "Outsider");
|
||||
await LoginAsync(outsiderClient, "outsider", "Password123");
|
||||
|
||||
Reference in New Issue
Block a user