mirror of https://github.com/ppy/osu
Ensure storyboards are enabled in existing epilepsy warning tests
This commit is contained in:
parent
4cea29402b
commit
02c6126be7
|
@ -45,6 +45,9 @@ public partial class TestScenePlayerLoader : ScreenTestScene
|
|||
[Resolved]
|
||||
private SessionStatics sessionStatics { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private OsuConfigManager config { get; set; }
|
||||
|
||||
[Cached(typeof(INotificationOverlay))]
|
||||
private readonly NotificationOverlay notificationOverlay;
|
||||
|
||||
|
@ -317,6 +320,7 @@ public void TestEpilepsyWarning(bool warning)
|
|||
saveVolumes();
|
||||
setFullVolume();
|
||||
|
||||
AddStep("enable storyboards", () => config.SetValue(OsuSetting.ShowStoryboard, true));
|
||||
AddStep("change epilepsy warning", () => epilepsyWarning = warning);
|
||||
AddStep("load dummy beatmap", () => resetPlayer(false));
|
||||
|
||||
|
@ -339,6 +343,7 @@ public void TestEpilepsyWarningEarlyExit()
|
|||
saveVolumes();
|
||||
setFullVolume();
|
||||
|
||||
AddStep("enable storyboards", () => config.SetValue(OsuSetting.ShowStoryboard, true));
|
||||
AddStep("set epilepsy warning", () => epilepsyWarning = true);
|
||||
AddStep("load dummy beatmap", () => resetPlayer(false));
|
||||
|
||||
|
|
Loading…
Reference in New Issue