mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
Fix reason not set in test
This commit is contained in:
parent
3bcc91511f
commit
18cc3b0bd3
@ -257,10 +257,12 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
});
|
});
|
||||||
AddWaitStep("Wait", 3);
|
AddWaitStep("Wait", 3);
|
||||||
AddAssert("Nothing happened", () => this.ChildrenOfType<ReportCommentPopover>().Any());
|
AddAssert("Nothing happened", () => this.ChildrenOfType<ReportCommentPopover>().Any());
|
||||||
AddStep("Enter some text", () =>
|
AddStep("Set report data", () =>
|
||||||
{
|
{
|
||||||
var field = this.ChildrenOfType<OsuTextBox>().Single();
|
var field = this.ChildrenOfType<OsuTextBox>().Single();
|
||||||
field.Current.Value = report_text;
|
field.Current.Value = report_text;
|
||||||
|
var reason = this.ChildrenOfType<OsuEnumDropdown<CommentReportReason>>().Single();
|
||||||
|
reason.Current.Value = CommentReportReason.Other;
|
||||||
});
|
});
|
||||||
AddStep("Try to report", () =>
|
AddStep("Try to report", () =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user