Fix various tests failing due to dependence on specific online data

This commit is contained in:
Dean Herbert
2020-12-24 21:28:21 +09:00
parent 323da82477
commit 66a23c22e5
5 changed files with 33 additions and 27 deletions

View File

@ -70,7 +70,7 @@ namespace osu.Game.Tests.Visual.Online
AddStep("Run command", () => Add(new NowPlayingCommand()));
if (hasOnlineId)
AddAssert("Check link presence", () => postTarget.LastMessage.Contains("https://osu.ppy.sh/b/1234"));
AddAssert("Check link presence", () => postTarget.LastMessage.Contains("/b/1234"));
else
AddAssert("Check link not present", () => !postTarget.LastMessage.Contains("https://"));
}