Ensure storyboards are enabled in existing epilepsy warning tests

This commit is contained in:
Bartłomiej Dach 2023-04-05 20:53:54 +02:00
parent 4cea29402b
commit 02c6126be7
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -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));