mirror of
https://github.com/ppy/osu
synced 2024-12-28 18:02:53 +00:00
Add failing text box beatmap difficulty count test
This commit is contained in:
parent
628c23afae
commit
bfb7ead689
@ -1068,6 +1068,21 @@ namespace osu.Game.Tests.Visual.SongSelect
|
||||
AddAssert("options disabled", () => !songSelect.ChildrenOfType<FooterButtonOptions>().Single().Enabled.Value);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestTextBoxBeatmapDifficultyCount()
|
||||
{
|
||||
createSongSelect();
|
||||
|
||||
AddAssert("0 matching shown", () => songSelect.ChildrenOfType<FilterControl>().Single().InformationalText == "0 matching beatmaps");
|
||||
|
||||
addRulesetImportStep(0);
|
||||
|
||||
AddAssert("3 matching shown", () => songSelect.ChildrenOfType<FilterControl>().Single().InformationalText == "3 matching beatmaps");
|
||||
AddStep("delete all beatmaps", () => manager.Delete());
|
||||
AddUntilStep("wait for no beatmap", () => Beatmap.IsDefault);
|
||||
AddAssert("0 matching shown", () => songSelect.ChildrenOfType<FilterControl>().Single().InformationalText == "0 matching beatmaps");
|
||||
}
|
||||
|
||||
private void waitForInitialSelection()
|
||||
{
|
||||
AddUntilStep("wait for initial selection", () => !Beatmap.IsDefault);
|
||||
|
Loading…
Reference in New Issue
Block a user