1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Fix test failure in visual browser

I'm not sure why it's failing headless and I'm not particularly
interested in finding that out right now.
This commit is contained in:
Bartłomiej Dach 2024-03-26 13:44:12 +01:00
parent e77d4c8cfa
commit dee88573a7
No known key found for this signature in database

View File

@ -9,6 +9,7 @@ using osu.Framework.Graphics.Containers;
using osu.Framework.Testing;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Screens.Menu;
using osuTK;
namespace osu.Game.Tests.Visual.Menus
{
@ -95,7 +96,7 @@ namespace osu.Game.Tests.Visual.Menus
}
});
AddUntilStep("wait for no image shown", () => !onlineMenuBanner.ChildrenOfType<OnlineMenuBanner.MenuImage>().Any());
AddUntilStep("wait for no image shown", () => onlineMenuBanner.ChildrenOfType<OnlineMenuBanner.MenuImage>().Single().Size, () => Is.EqualTo(Vector2.Zero));
AddStep("unset system title", () => onlineMenuBanner.Current.Value = new APIMenuContent());