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

Update test

This commit is contained in:
ansel 2022-10-17 13:46:13 +03:00
parent ceb4d624b5
commit 3bcc91511f

View File

@ -249,11 +249,6 @@ namespace osu.Game.Tests.Visual.Online
InputManager.MoveMouseTo(btn);
InputManager.Click(MouseButton.Left);
});
AddStep("Select \"other\"", () =>
{
var field = this.ChildrenOfType<LabelledEnumDropdown<CommentReportReason>>().Single();
field.Current.Value = CommentReportReason.Other;
});
AddStep("Try to report", () =>
{
var btn = this.ChildrenOfType<ReportCommentPopover>().Single().ChildrenOfType<RoundedButton>().Single();
@ -264,7 +259,7 @@ namespace osu.Game.Tests.Visual.Online
AddAssert("Nothing happened", () => this.ChildrenOfType<ReportCommentPopover>().Any());
AddStep("Enter some text", () =>
{
var field = this.ChildrenOfType<LabelledTextBox>().Single();
var field = this.ChildrenOfType<OsuTextBox>().Single();
field.Current.Value = report_text;
});
AddStep("Try to report", () =>