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:
parent
6e59cab928
commit
2f2dc158e0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user