1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-12 16:35:37 +08:00

Fix carousel tests failing due to dependency on depth ordering

This commit is contained in:
Dean Herbert 2025-02-04 17:50:14 +09:00
parent 2f2dc158e0
commit ccdb6e4c48
No known key found for this signature in database

View File

@ -178,7 +178,7 @@ namespace osu.Game.Tests.Visual.SongSelect
Carousel.ChildrenOfType<UserTrackingScrollContainer>().Single()
.ChildrenOfType<T>()
.Where(p => ((ICarouselPanel)p).Item?.IsVisible == true)
.Reverse()
.OrderBy(p => p.Y)
.ElementAt(index)
.TriggerClick();
});