mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:03:22 +08:00
Just wait for metadata section to be loaded
This commit is contained in:
parent
8a4c0c0ac8
commit
ad0732484f
@ -8,6 +8,7 @@ using osu.Framework.Testing;
|
|||||||
using osu.Game.Beatmaps.ControlPoints;
|
using osu.Game.Beatmaps.ControlPoints;
|
||||||
using osu.Game.Rulesets.Edit;
|
using osu.Game.Rulesets.Edit;
|
||||||
using osu.Game.Screens.Edit;
|
using osu.Game.Screens.Edit;
|
||||||
|
using osu.Game.Screens.Edit.Setup;
|
||||||
using osu.Game.Screens.Menu;
|
using osu.Game.Screens.Menu;
|
||||||
using osu.Game.Screens.Select;
|
using osu.Game.Screens.Select;
|
||||||
using osuTK.Input;
|
using osuTK.Input;
|
||||||
@ -32,6 +33,8 @@ namespace osu.Game.Tests.Visual.Editing
|
|||||||
|
|
||||||
AddUntilStep("wait for editor load", () => editor?.IsLoaded == true);
|
AddUntilStep("wait for editor load", () => editor?.IsLoaded == true);
|
||||||
|
|
||||||
|
AddUntilStep("wait for metadata screen load", () => editor.ChildrenOfType<MetadataSection>().FirstOrDefault()?.IsLoaded == true);
|
||||||
|
|
||||||
AddStep("Set overall difficulty", () => editorBeatmap.Difficulty.OverallDifficulty = 7);
|
AddStep("Set overall difficulty", () => editorBeatmap.Difficulty.OverallDifficulty = 7);
|
||||||
AddStep("Set artist and title", () =>
|
AddStep("Set artist and title", () =>
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@ using osu.Game.Graphics.UserInterfaceV2;
|
|||||||
|
|
||||||
namespace osu.Game.Screens.Edit.Setup
|
namespace osu.Game.Screens.Edit.Setup
|
||||||
{
|
{
|
||||||
internal class MetadataSection : SetupSection
|
public class MetadataSection : SetupSection
|
||||||
{
|
{
|
||||||
protected LabelledTextBox ArtistTextBox;
|
protected LabelledTextBox ArtistTextBox;
|
||||||
protected LabelledTextBox RomanisedArtistTextBox;
|
protected LabelledTextBox RomanisedArtistTextBox;
|
||||||
|
Loading…
Reference in New Issue
Block a user