1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Add failing test for adding collection w/ name colliding w/\ default items

This commit is contained in:
Bartłomiej Dach 2023-12-18 12:47:42 +01:00
parent 41f5a6e292
commit be16e0e538
No known key found for this signature in database

View File

@ -166,6 +166,29 @@ namespace osu.Game.Tests.Visual.Collections
})));
}
[Test]
public void TestCollectionNameCollisionsWithBuiltInItems()
{
AddStep("add dropdown", () =>
{
Add(new CollectionDropdown
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.X,
Width = 0.4f,
});
});
AddStep("add two collections which collide with default items", () => Realm.Write(r => r.Add(new[]
{
new BeatmapCollection(name: "All beatmaps"),
new BeatmapCollection(name: "Manage collections...")
{
BeatmapMD5Hashes = { beatmapManager.GetAllUsableBeatmapSets().First().Beatmaps[0].MD5Hash }
},
})));
}
[Test]
public void TestRemoveCollectionViaButton()
{