mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Add failing test case
This commit is contained in:
parent
619c541cf5
commit
e8046654c8
@ -64,6 +64,21 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
() => commentsContainer.ChildrenOfType<CommentsShowMoreButton>().Single().Alpha == 1);
|
() => commentsContainer.ChildrenOfType<CommentsShowMoreButton>().Single().Alpha == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestMultipleLoads()
|
||||||
|
{
|
||||||
|
var comments = exampleComments;
|
||||||
|
int topLevelCommentCount = exampleComments.Comments.Count(comment => comment.IsTopLevel);
|
||||||
|
|
||||||
|
AddStep("hide container", () => commentsContainer.Hide());
|
||||||
|
setUpCommentsResponse(comments);
|
||||||
|
AddRepeatStep("show comments multiple times",
|
||||||
|
() => commentsContainer.ShowComments(CommentableType.Beatmapset, 456), 2);
|
||||||
|
AddStep("show container", () => commentsContainer.Show());
|
||||||
|
AddUntilStep("comment count is correct",
|
||||||
|
() => commentsContainer.ChildrenOfType<DrawableComment>().Count() == topLevelCommentCount);
|
||||||
|
}
|
||||||
|
|
||||||
private void setUpCommentsResponse(CommentBundle commentBundle)
|
private void setUpCommentsResponse(CommentBundle commentBundle)
|
||||||
=> AddStep("set up response", () =>
|
=> AddStep("set up response", () =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user