1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 08:22:56 +08:00

Fix test not working when not logged in

This commit is contained in:
Dean Herbert 2018-12-26 20:42:47 +09:00
parent e317b047f8
commit ae47eb61ca

View File

@ -40,6 +40,7 @@ namespace osu.Game.Tests.Visual
AddStep("imported", () => beatmapBindable.Value = imported.Beatmaps.First());
if (api.IsLoggedIn)
{
AddUntilStep(() => req.Result != null, "wait for api response");
AddStep("online", () => beatmapBindable.Value = new BeatmapInfo
@ -47,5 +48,10 @@ namespace osu.Game.Tests.Visual
BeatmapSet = req.Result?.ToBeatmapSet(rulesets)
});
}
else
{
AddStep("online (login first)", () => { });
}
}
}
}