Revert "Remove PopoverButton class"

This reverts commit 6b712be97d.
This commit is contained in:
Dan Balasescu
2022-03-24 11:15:51 +09:00
parent 34a367b369
commit 547418e47e
2 changed files with 9 additions and 5 deletions

View File

@ -79,7 +79,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
ClickButtonWhenEnabled<CountdownButton>();
AddStep("click the first countdown button", () =>
{
var popoverButton = this.ChildrenOfType<CountdownButton>().Single().ChildrenOfType<OsuButton>().First();
var popoverButton = this.ChildrenOfType<CountdownButton.PopoverButton>().First();
InputManager.MoveMouseTo(popoverButton);
InputManager.Click(MouseButton.Left);
});
@ -97,7 +97,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
ClickButtonWhenEnabled<CountdownButton>();
AddStep("click the first countdown button", () =>
{
var popoverButton = this.ChildrenOfType<CountdownButton>().Single().ChildrenOfType<OsuButton>().First();
var popoverButton = this.ChildrenOfType<CountdownButton.PopoverButton>().First();
InputManager.MoveMouseTo(popoverButton);
InputManager.Click(MouseButton.Left);
});
@ -150,7 +150,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
ClickButtonWhenEnabled<CountdownButton>();
AddStep("click the first countdown button", () =>
{
var popoverButton = this.ChildrenOfType<CountdownButton>().Single().ChildrenOfType<OsuButton>().First();
var popoverButton = this.ChildrenOfType<CountdownButton.PopoverButton>().First();
InputManager.MoveMouseTo(popoverButton);
InputManager.Click(MouseButton.Left);
});
@ -173,7 +173,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
ClickButtonWhenEnabled<CountdownButton>();
AddStep("click the first countdown button", () =>
{
var popoverButton = this.ChildrenOfType<CountdownButton>().Single().ChildrenOfType<OsuButton>().First();
var popoverButton = this.ChildrenOfType<CountdownButton.PopoverButton>().First();
InputManager.MoveMouseTo(popoverButton);
InputManager.Click(MouseButton.Left);
});