1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:52:56 +08:00

Delete the test

This commit is contained in:
ansel 2022-10-13 23:59:36 +03:00
parent 295e6f5a68
commit a375c3389b

View File

@ -10,7 +10,6 @@ using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Platform;
using osu.Framework.Testing;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites;
@ -36,9 +35,6 @@ namespace osu.Game.Tests.Visual.Online
[Cached]
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Purple);
[Resolved]
private GameHost host { get; set; } = null!;
private CommentsContainer commentsContainer = null!;
[BackgroundDependencyLoader]
@ -208,22 +204,6 @@ namespace osu.Game.Tests.Visual.Online
});
}
[Test]
public void TestCopyLink()
{
addTestComments();
AddUntilStep("Comments loaded", () => this.ChildrenOfType<DrawableComment>().Count() == 2);
AddStep("Click copy link", () =>
{
var comment = this.ChildrenOfType<DrawableComment>().First();
var links = comment.ChildrenOfType<LinkFlowContainer>().Single(x => x.Name == @"Actions buttons");
var btn = links.ChildrenOfType<OsuSpriteText>().Single(x => x.Text.ToString().StartsWith("Copy"));
InputManager.MoveMouseTo(btn);
InputManager.Click(MouseButton.Left);
});
AddUntilStep("Link copied", () => host.GetClipboard()?.GetText() == "https://osu.ppy.sh/comments/1");
}
private void addTestComments()
{
AddStep("set up response", () =>