mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 22:22:55 +08:00
Change test
This commit is contained in:
parent
0ef903230c
commit
81bdf716ef
@ -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()
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user