Add test covering mod displays with too many mods

This commit is contained in:
Dean Herbert
2021-07-21 15:35:59 +09:00
parent 5bee06fd5f
commit b65e607941
3 changed files with 23 additions and 2 deletions

View File

@ -36,6 +36,17 @@ namespace osu.Game.Tests.Visual.Ranking
{
Beatmap = createTestBeatmap(author)
}));
}
[Test]
public void TestExcessMods()
{
var author = new User { Username = "mapper_name" };
AddStep("show excess mods score", () => showPanel(new TestScoreInfo(new OsuRuleset().RulesetInfo, true)
{
Beatmap = createTestBeatmap(author)
}));
AddAssert("mapper name present", () => this.ChildrenOfType<OsuSpriteText>().Any(spriteText => spriteText.Current.Value == "mapper_name"));
}