1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 22:22:55 +08:00

Change test

This commit is contained in:
ansel 2022-10-20 19:56:00 +03:00
parent 0ef903230c
commit 81bdf716ef
2 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ namespace osu.Game.Tests.Visual.Online
AddStep("Complete request", () => requestLock.Set());
AddUntilStep("Request sent", () => request != null);
AddAssert("Request is correct", () => request != null && request.CommentID == 2 && request.Comment == report_text && request.Reason == CommentReportReason.Other);
AddUntilStep("Buttons hidden", () => !targetComment.ChildrenOfType<LinkFlowContainer>().Single(x => x.Name == @"Actions buttons").IsPresent);
AddUntilStep("Button expired", () => !targetComment.ChildrenOfType<DrawableComment.ReportButton>().Any());
}
private void addTestComments()

View File

@ -594,7 +594,7 @@ namespace osu.Game.Overlays.Comments
}
}
private class ReportButton : LinkFlowContainer, IHasPopover
internal class ReportButton : LinkFlowContainer, IHasPopover
{
public ReportButton()
: base(s => s.Font = OsuFont.GetFont(size: 12, weight: FontWeight.Bold))