1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 11:52:56 +08:00

showpopover directly

This commit is contained in:
cdwcgt 2022-12-21 15:44:02 +09:00
parent ffa32307c3
commit 1b2c821346
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -12,6 +12,7 @@ using JetBrains.Annotations;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
@ -544,19 +545,7 @@ namespace osu.Game.Tests.Visual.Online
AddAssert("Overlay is visible", () => chatOverlay.State.Value == Visibility.Visible);
waitForChannel1Visible();
AddStep("Right click username", () =>
{
var username = this.ChildrenOfType<DrawableUsername>().First();
InputManager.MoveMouseTo(username);
InputManager.Click(MouseButton.Right);
});
AddStep("Click report", () =>
{
var btn = this.ChildrenOfType<OsuSpriteText>().First(x => x.Text == "Report");
InputManager.MoveMouseTo(btn);
InputManager.Click(MouseButton.Left);
});
AddStep("Show report popover", () => this.ChildrenOfType<DrawableUsername>().First().ShowPopover());
AddStep("Try to report", () =>
{