Add test case for switching to each screen in editor test scenes

This commit is contained in:
Salman Ahmed 2021-08-25 15:09:57 +03:00
parent f02b6b3657
commit f9b25a0159

View File

@ -3,6 +3,7 @@
using System.Linq;
using JetBrains.Annotations;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.IO.Stores;
@ -28,6 +29,9 @@ namespace osu.Game.Tests.Visual
protected EditorClock EditorClock { get; private set; }
[Resolved]
private SkinManager skins { get; set; }
/// <summary>
/// Whether any saves performed by the editor should be isolate (and not persist) to the underlying <see cref="BeatmapManager"/>.
/// </summary>
@ -57,6 +61,12 @@ namespace osu.Game.Tests.Visual
AddStep("get clock", () => EditorClock = Editor.ChildrenOfType<EditorClock>().Single());
}
[Test]
public void TestLegacySkin()
{
AddStep("set legacy skin", () => skins.CurrentSkinInfo.Value = DefaultLegacySkin.Info);
}
protected virtual void LoadEditor()
{
LoadScreen(Editor = CreateEditor());