1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-08 07:02:54 +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}", () =>
{
Carousel.ChildrenOfType<T>()
Carousel.ChildrenOfType<UserTrackingScrollContainer>().Single()
.ChildrenOfType<T>()
.Where(p => ((ICarouselPanel)p).Item?.IsVisible == true)
.Reverse()
.ElementAt(index)