1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Fix test matching conditions

This commit is contained in:
Dean Herbert 2022-04-15 01:41:55 +09:00
parent c57a918bbb
commit a0ac316d6e

View File

@ -49,7 +49,8 @@ namespace osu.Game.Tests.Visual.Settings
AddAssert("ensure all items match filter", () => settings.SectionsContainer
.ChildrenOfType<SettingsSection>().Where(f => f.IsPresent)
.All(section =>
section.ChildrenOfType<Drawable>().Where(f => f.IsPresent)
section.Children.Where(f => f.IsPresent)
.OfType<ISettingsItem>()
.OfType<IFilterable>()
.Where(f => !(f is IHasFilterableChildren))
.All(f => f.FilterTerms.Any(t => t.Contains("scaling")))