mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 05:52:54 +08:00
Fix wedge showing abruptly in test
This commit is contained in:
parent
82fb9dc2ef
commit
e0a9c7e9a9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user