1
0
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:
ansel 2022-10-17 20:23:25 +03:00
parent 3bcc91511f
commit 18cc3b0bd3

View File

@ -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", () =>
{ {