mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 16:02:58 +08:00
Remove irrelevant test
This commit is contained in:
parent
2553cfed75
commit
d5a37c2237
@ -143,26 +143,6 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
AddAssert("countdown button enabled", () => this.ChildrenOfType<MultiplayerCountdownButton>().Single().Enabled.Value);
|
AddAssert("countdown button enabled", () => this.ChildrenOfType<MultiplayerCountdownButton>().Single().Enabled.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void TestSpectatingDuringCountdownWithNoReadyUsersCancelsCountdown()
|
|
||||||
{
|
|
||||||
ClickButtonWhenEnabled<MultiplayerReadyButton>();
|
|
||||||
AddUntilStep("countdown button shown", () => this.ChildrenOfType<MultiplayerCountdownButton>().SingleOrDefault()?.IsPresent == true);
|
|
||||||
ClickButtonWhenEnabled<MultiplayerCountdownButton>();
|
|
||||||
AddStep("click the first countdown button", () =>
|
|
||||||
{
|
|
||||||
var popoverButton = this.ChildrenOfType<Popover>().Single().ChildrenOfType<OsuButton>().First();
|
|
||||||
InputManager.MoveMouseTo(popoverButton);
|
|
||||||
InputManager.Click(MouseButton.Left);
|
|
||||||
});
|
|
||||||
|
|
||||||
AddStep("set spectating", () => MultiplayerClient.ChangeUserState(API.LocalUser.Value.OnlineID, MultiplayerUserState.Spectating));
|
|
||||||
AddUntilStep("local user is spectating", () => MultiplayerClient.LocalUser?.State == MultiplayerUserState.Spectating);
|
|
||||||
|
|
||||||
AddStep("finish countdown", () => MultiplayerClient.SkipToEndOfCountdown());
|
|
||||||
AddUntilStep("match not started", () => MultiplayerClient.Room?.State == MultiplayerRoomState.Open);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestReadyButtonEnabledWhileSpectatingDuringCountdown()
|
public void TestReadyButtonEnabledWhileSpectatingDuringCountdown()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user