1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 10:10:15 +08:00

Add failing test showing random selecting filtered-away difficulties

This commit is contained in:
Dean Herbert
2025-06-01 00:51:52 +09:00
Unverified
parent ccb47baa8c
commit 0fc129fbac
@@ -19,6 +19,24 @@ namespace osu.Game.Tests.Visual.SongSelectV2
CreateCarousel();
}
[Test]
public void TestRandomObeysFiltering()
{
AddBeatmaps(2, 10, true);
ApplyToFilter("filter", c => c.SearchText = BeatmapSets[0].Beatmaps.Last().DifficultyName);
WaitForFiltering();
CheckDisplayedBeatmapSetsCount(1);
CheckDisplayedBeatmapsCount(1);
for (int i = 0; i < 10; i++)
{
nextRandom();
WaitForSelection(0, 9);
}
}
/// <summary>
/// Test random non-repeating algorithm
/// </summary>