mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Fix score presentation tests not correctly entering song select before running
This commit is contained in:
parent
8883505eed
commit
4c97ed676f
@ -16,6 +16,7 @@ using osu.Game.Screens;
|
|||||||
using osu.Game.Screens.Menu;
|
using osu.Game.Screens.Menu;
|
||||||
using osu.Game.Screens.Play;
|
using osu.Game.Screens.Play;
|
||||||
using osu.Game.Screens.Ranking;
|
using osu.Game.Screens.Ranking;
|
||||||
|
using osu.Game.Screens.Select;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.Navigation
|
namespace osu.Game.Tests.Visual.Navigation
|
||||||
{
|
{
|
||||||
@ -92,6 +93,9 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestFromSongSelect([Values] ScorePresentType type)
|
public void TestFromSongSelect([Values] ScorePresentType type)
|
||||||
{
|
{
|
||||||
|
AddStep("enter song select", () => Game.ChildrenOfType<ButtonSystem>().Single().OnSolo.Invoke());
|
||||||
|
AddUntilStep("song select is current", () => Game.ScreenStack.CurrentScreen is PlaySongSelect songSelect && songSelect.BeatmapSetsLoaded);
|
||||||
|
|
||||||
var firstImport = importScore(1);
|
var firstImport = importScore(1);
|
||||||
presentAndConfirm(firstImport, type);
|
presentAndConfirm(firstImport, type);
|
||||||
|
|
||||||
@ -102,6 +106,9 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestFromSongSelectDifferentRuleset([Values] ScorePresentType type)
|
public void TestFromSongSelectDifferentRuleset([Values] ScorePresentType type)
|
||||||
{
|
{
|
||||||
|
AddStep("enter song select", () => Game.ChildrenOfType<ButtonSystem>().Single().OnSolo.Invoke());
|
||||||
|
AddUntilStep("song select is current", () => Game.ScreenStack.CurrentScreen is PlaySongSelect songSelect && songSelect.BeatmapSetsLoaded);
|
||||||
|
|
||||||
var firstImport = importScore(1);
|
var firstImport = importScore(1);
|
||||||
presentAndConfirm(firstImport, type);
|
presentAndConfirm(firstImport, type);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user