mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
Update test
This commit is contained in:
parent
ceb4d624b5
commit
3bcc91511f
@ -249,11 +249,6 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
InputManager.MoveMouseTo(btn);
|
InputManager.MoveMouseTo(btn);
|
||||||
InputManager.Click(MouseButton.Left);
|
InputManager.Click(MouseButton.Left);
|
||||||
});
|
});
|
||||||
AddStep("Select \"other\"", () =>
|
|
||||||
{
|
|
||||||
var field = this.ChildrenOfType<LabelledEnumDropdown<CommentReportReason>>().Single();
|
|
||||||
field.Current.Value = CommentReportReason.Other;
|
|
||||||
});
|
|
||||||
AddStep("Try to report", () =>
|
AddStep("Try to report", () =>
|
||||||
{
|
{
|
||||||
var btn = this.ChildrenOfType<ReportCommentPopover>().Single().ChildrenOfType<RoundedButton>().Single();
|
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());
|
AddAssert("Nothing happened", () => this.ChildrenOfType<ReportCommentPopover>().Any());
|
||||||
AddStep("Enter some text", () =>
|
AddStep("Enter some text", () =>
|
||||||
{
|
{
|
||||||
var field = this.ChildrenOfType<LabelledTextBox>().Single();
|
var field = this.ChildrenOfType<OsuTextBox>().Single();
|
||||||
field.Current.Value = report_text;
|
field.Current.Value = report_text;
|
||||||
});
|
});
|
||||||
AddStep("Try to report", () =>
|
AddStep("Try to report", () =>
|
||||||
|
Loading…
Reference in New Issue
Block a user