1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-08 11:42:55 +08:00

Ensure test step doesn't consider pooled instances of drawables

This commit is contained in:
Dean Herbert 2025-02-04 17:44:59 +09:00
parent 6e59cab928
commit 2f2dc158e0
No known key found for this signature in database

View File

@ -175,7 +175,8 @@ namespace osu.Game.Tests.Visual.SongSelect
{ {
AddStep($"click panel at index {index}", () => AddStep($"click panel at index {index}", () =>
{ {
Carousel.ChildrenOfType<T>() Carousel.ChildrenOfType<UserTrackingScrollContainer>().Single()
.ChildrenOfType<T>()
.Where(p => ((ICarouselPanel)p).Item?.IsVisible == true) .Where(p => ((ICarouselPanel)p).Item?.IsVisible == true)
.Reverse() .Reverse()
.ElementAt(index) .ElementAt(index)