mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Create new test for StoryboardReplacesBackground
This commit is contained in:
@ -171,6 +171,31 @@ namespace osu.Game.Tests.Visual
|
||||
AddAssert("Background is visible", () => songSelect.AssertVisible());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// When exiting player, the screen that it suspends/exits to needs to have a fully visible (Alpha == 1) background.
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void StoryboardTransitionTest()
|
||||
{
|
||||
performSetup();
|
||||
AddStep("Enable storyboard", () =>
|
||||
{
|
||||
player.ReplacesBackground.Value = true;
|
||||
player.StoryboardEnabled.Value = true;
|
||||
});
|
||||
AddUntilStep(() =>
|
||||
{
|
||||
if (!songSelect.IsCurrentScreen())
|
||||
{
|
||||
songSelect.MakeCurrent();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}, "Wait for song select is current");
|
||||
AddWaitStep(5, "Wait for dim");
|
||||
AddAssert("Background is visible", () => songSelect.AssertVisible());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check if the fade container is properly being reset when screen dim is disabled.
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user