Load campaign logs incrementally
This commit is contained in:
@@ -50,6 +50,11 @@ public sealed class RollVisibilityApiTests : ApiTestBase
|
||||
Assert.Equal("public", observerLog[0].Visibility);
|
||||
Assert.NotEmpty(observerLog[0].Dice);
|
||||
|
||||
var observerLogPage = await GetAsync<CampaignLogPage>(observerClient, $"/api/campaigns/{campaign.Id}/log/page");
|
||||
Assert.Single(observerLogPage.Entries);
|
||||
Assert.Equal(publicRoll.RollId, observerLogPage.Entries[0].RollId);
|
||||
Assert.Equal(publicRoll.RollId, observerLogPage.Cursor);
|
||||
|
||||
await RegisterAsync(outsiderClient, "outsider", "Password123", "Outsider");
|
||||
await LoginAsync(outsiderClient, "outsider", "Password123");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user