mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 02:43:02 +08:00
Add failing test for beatmap set hard deletion
This commit is contained in:
parent
2f4e447cba
commit
e51d510ea3
@ -1211,6 +1211,20 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
AddAssert("0 matching shown", () => songSelect.ChildrenOfType<FilterControl>().Single().InformationalText == "0 matches");
|
AddAssert("0 matching shown", () => songSelect.ChildrenOfType<FilterControl>().Single().InformationalText == "0 matches");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
[Solo]
|
||||||
|
public void TestHardDeleteHandledCorrectly()
|
||||||
|
{
|
||||||
|
createSongSelect();
|
||||||
|
|
||||||
|
addRulesetImportStep(0);
|
||||||
|
AddAssert("3 matching shown", () => songSelect.ChildrenOfType<FilterControl>().Single().InformationalText == "3 matches");
|
||||||
|
|
||||||
|
AddStep("hard delete beatmap", () => Realm.Write(r => r.RemoveRange(r.All<BeatmapSetInfo>().Where(s => !s.Protected))));
|
||||||
|
|
||||||
|
AddUntilStep("0 matching shown", () => songSelect.ChildrenOfType<FilterControl>().Single().InformationalText == "0 matches");
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestDeleteHotkey()
|
public void TestDeleteHotkey()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user