Skip to content

Commit

Permalink
Fixes to tests (if it helps)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjdk committed Nov 2, 2024
1 parent 85a5671 commit 30f4a43
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/TrelloDotNet.Tests/IntegrationTests/CardTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,12 @@ public async Task Checklists()
var checklistsNow = await TrelloClient.GetChecklistsOnBoardAsync(_board.Id);
Assert.Equal(3, checklistsNow.Count);

await TrelloClient.DeleteChecklistItemAsync(checklistsNow[0].Id, checklistsNow[0].Items[0].Id);
await Task.Delay(1000);
Checklist checklist = checklistsNow[0];
await TrelloClient.DeleteChecklistItemAsync(checklist.Id, checklist.Items[0].Id);
await Task.Delay(1000);
var checklistsNowAfterOneDelete = await TrelloClient.GetChecklistsOnBoardAsync(_board.Id);
Assert.Equal(checklistsNow[0].Items.Count - 1, checklistsNowAfterOneDelete[0].Items.Count);
Assert.Equal(checklist.Items.Count - 1, checklistsNowAfterOneDelete.First(x => x.Id == checklist.Id).Items.Count);

await TrelloClient.DeleteChecklistAsync(addedChecklist.Id);
var checklistsNow2 = await TrelloClient.GetChecklistsOnBoardAsync(_board.Id);
Expand Down

0 comments on commit 30f4a43

Please sign in to comment.