mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09: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());
|
AddStep("Complete request", () => requestLock.Set());
|
||||||
AddUntilStep("Request sent", () => request != null);
|
AddUntilStep("Request sent", () => request != null);
|
||||||
AddAssert("Request is correct", () => request != null && request.CommentID == 2 && request.Comment == report_text && request.Reason == CommentReportReason.Other);
|
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()
|
private void addTestComments()
|
||||||
|
@ -594,7 +594,7 @@ namespace osu.Game.Overlays.Comments
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ReportButton : LinkFlowContainer, IHasPopover
|
internal class ReportButton : LinkFlowContainer, IHasPopover
|
||||||
{
|
{
|
||||||
public ReportButton()
|
public ReportButton()
|
||||||
: base(s => s.Font = OsuFont.GetFont(size: 12, weight: FontWeight.Bold))
|
: base(s => s.Font = OsuFont.GetFont(size: 12, weight: FontWeight.Bold))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user