Check local deletion in test

This commit is contained in:
ansel 2022-09-28 17:52:12 +03:00
parent 636befb499
commit 965e7bf265

View File

@ -129,6 +129,10 @@ namespace osu.Game.Tests.Visual.Online
});
AddStep("Confirm dialog", () => InputManager.Key(Key.Number1));
AddUntilStep("Deletion requested", () => delete);
AddUntilStep("Comment is deleted locally", () =>
{
return this.ChildrenOfType<DrawableComment>().SingleOrDefault(x => x.Comment.Id == 1) == null;
});
}
private void addTestComments()