1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:33:21 +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,12 +40,18 @@ 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
AddStep("online", () => beatmapBindable.Value = new BeatmapInfo
{
BeatmapSet = req.Result?.ToBeatmapSet(rulesets)
});
}
else
{
BeatmapSet = req.Result?.ToBeatmapSet(rulesets)
});
AddStep("online (login first)", () => { });
}
}
}
}