mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 19:43:22 +08:00
Fix test failure due to async-loading of content
This commit is contained in:
parent
84a3cee452
commit
1f17652c1d
@ -191,7 +191,7 @@ namespace osu.Game.Tests.Visual.SongSelect
|
||||
{
|
||||
AddUntilStep($"displayed bpm is {target}", () =>
|
||||
{
|
||||
var label = this.ChildrenOfType<BeatmapInfoWedge.WedgeInfoText.InfoLabel>().Single(l => l.Statistic.Name == "BPM");
|
||||
var label = infoWedge.DisplayedContent.ChildrenOfType<BeatmapInfoWedge.WedgeInfoText.InfoLabel>().Single(l => l.Statistic.Name == "BPM");
|
||||
return label.Statistic.Content == target;
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user