mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 08:33:55 +09:00
Add failing test case
This commit is contained in:
@ -230,6 +230,31 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
AddUntilStep("wait overlay not present", () => !notificationOverlay.IsPresent);
|
AddUntilStep("wait overlay not present", () => !notificationOverlay.IsPresent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestProgressClick()
|
||||||
|
{
|
||||||
|
ProgressNotification notification = null!;
|
||||||
|
|
||||||
|
AddStep("add progress notification", () =>
|
||||||
|
{
|
||||||
|
notification = new ProgressNotification
|
||||||
|
{
|
||||||
|
Text = @"Uploading to BSS...",
|
||||||
|
CompletionText = "Uploaded to BSS!",
|
||||||
|
};
|
||||||
|
notificationOverlay.Post(notification);
|
||||||
|
progressingNotifications.Add(notification);
|
||||||
|
});
|
||||||
|
|
||||||
|
AddStep("hover over notification", () => InputManager.MoveMouseTo(notificationOverlay.ChildrenOfType<ProgressNotification>().Single()));
|
||||||
|
|
||||||
|
AddStep("left click", () => InputManager.Click(MouseButton.Left));
|
||||||
|
AddAssert("not cancelled", () => notification.State == ProgressNotificationState.Active);
|
||||||
|
|
||||||
|
AddStep("right click", () => InputManager.Click(MouseButton.Right));
|
||||||
|
AddAssert("cancelled", () => notification.State == ProgressNotificationState.Cancelled);
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestCompleteProgress()
|
public void TestCompleteProgress()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user