1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 10:33:07 +08:00

Fix failing test and rename to match new behaviour

This commit is contained in:
Salman Ahmed 2021-08-13 12:12:20 +03:00
parent fc22e806f4
commit f5cea0cacd

View File

@ -84,7 +84,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
}
[Test]
public void TestSpectatorPlayerSettingsHidden()
public void TestSpectatorPlayerInteractiveElementsHidden()
{
start(new[] { PLAYER_1_ID, PLAYER_2_ID });
loadSpectateScreen(false);
@ -96,7 +96,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
AddUntilStep("all interactive elements removed", () => this.ChildrenOfType<Player>().All(p =>
!p.ChildrenOfType<PlayerSettingsOverlay>().Any() &&
!p.ChildrenOfType<HoldForMenuButton>().Any() &&
!p.ChildrenOfType<SongProgressBar>().Single().ShowHandle));
p.ChildrenOfType<SongProgressBar>().SingleOrDefault()?.ShowHandle == false));
}
[Test]