mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Replace references to old mod select classes in match song select test
Also note the change from `songSelect.ChildrenOfType<>()...` to `this.ChildrenOfType<>()...` - because the new design is registered at game-level, the mod select is not a child of the song select screen anymore.
This commit is contained in:
parent
199bdb8e7d
commit
ecc2805099
@ -132,7 +132,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
private void assertHasFreeModButton(Type type, bool hasButton = true)
|
||||
{
|
||||
AddAssert($"{type.ReadableName()} {(hasButton ? "displayed" : "not displayed")} in freemod overlay",
|
||||
() => songSelect.ChildrenOfType<FreeModSelectOverlay>().Single().ChildrenOfType<ModButton>().All(b => b.Mod.GetType() != type));
|
||||
() => this.ChildrenOfType<FreeModSelectScreen>().Single().ChildrenOfType<ModPanel>().All(b => b.Mod.GetType() != type));
|
||||
}
|
||||
|
||||
private class TestMultiplayerMatchSongSelect : MultiplayerMatchSongSelect
|
||||
|
Loading…
Reference in New Issue
Block a user