Skip to content

Commit

Permalink
Fix tournament song bar tests not showing anything by default
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Aug 16, 2023
1 parent 7f8455e commit 965da34
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions osu.Game.Tournament.Tests/Components/TestSceneSongBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Beatmaps.Legacy;
using osu.Game.Tests.Visual;
using osu.Game.Tournament.Components;
Expand All @@ -17,19 +18,23 @@ public partial class TestSceneSongBar : OsuTestScene
[Cached]
private readonly LadderInfo ladder = new LadderInfo();

[Test]
public void TestSongBar()
{
SongBar songBar = null!;
private SongBar songBar = null!;

[SetUpSteps]
public void SetUpSteps()
{
AddStep("create bar", () => Child = songBar = new SongBar
{
RelativeSizeAxes = Axes.X,
Anchor = Anchor.Centre,
Origin = Anchor.Centre
});
AddUntilStep("wait for loaded", () => songBar.IsLoaded);
}

[Test]
public void TestSongBar()
{
AddStep("set beatmap", () =>
{
var beatmap = CreateAPIBeatmap(Ruleset.Value);
Expand Down

0 comments on commit 965da34

Please sign in to comment.