mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Add check for spinner
This commit is contained in:
parent
c11258a7e9
commit
6e82ffbc6f
@ -11,6 +11,7 @@ using osu.Framework.Graphics.Containers;
|
|||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
using osu.Game.Graphics.Containers;
|
using osu.Game.Graphics.Containers;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Online.API;
|
using osu.Game.Online.API;
|
||||||
using osu.Game.Online.API.Requests;
|
using osu.Game.Online.API.Requests;
|
||||||
using osu.Game.Online.API.Requests.Responses;
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
@ -136,6 +137,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
});
|
});
|
||||||
AddStep("Confirm dialog", () => InputManager.Key(Key.Number1));
|
AddStep("Confirm dialog", () => InputManager.Key(Key.Number1));
|
||||||
AddUntilStep("Deletion requested", () => delete);
|
AddUntilStep("Deletion requested", () => delete);
|
||||||
|
AddAssert("Loading spinner shown", () => commentsContainer.ChildrenOfType<LoadingSpinner>().Any(d => d.IsPresent));
|
||||||
AddUntilStep("Comment is deleted locally", () =>
|
AddUntilStep("Comment is deleted locally", () =>
|
||||||
{
|
{
|
||||||
return this.ChildrenOfType<DrawableComment>().SingleOrDefault(x => x.Comment.Id == 1) == null;
|
return this.ChildrenOfType<DrawableComment>().SingleOrDefault(x => x.Comment.Id == 1) == null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user