1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

Fix wedge showing abruptly in test

This commit is contained in:
Joseph Madamba 2023-09-04 14:54:58 -07:00
parent 82fb9dc2ef
commit e0a9c7e9a9
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -56,7 +56,6 @@ namespace osu.Game.Tests.Visual.SongSelect
Padding = new MarginPadding { Top = 20 }, Padding = new MarginPadding { Top = 20 },
Child = infoWedge = new TestBeatmapInfoWedgeV2 Child = infoWedge = new TestBeatmapInfoWedgeV2
{ {
State = { Value = Visibility.Visible },
Width = 0.6f, Width = 0.6f,
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
}, },
@ -165,6 +164,7 @@ namespace osu.Game.Tests.Visual.SongSelect
{ {
containerBefore = infoWedge.DisplayedContent; containerBefore = infoWedge.DisplayedContent;
infoWedge.Beatmap = Beatmap.Value = b == null ? Beatmap.Default : CreateWorkingBeatmap(b); infoWedge.Beatmap = Beatmap.Value = b == null ? Beatmap.Default : CreateWorkingBeatmap(b);
infoWedge.Show();
}); });
AddUntilStep("wait for async load", () => infoWedge.DisplayedContent != containerBefore); AddUntilStep("wait for async load", () => infoWedge.DisplayedContent != containerBefore);