mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 15:33:05 +08:00
Fix stop watching test to check correct screen presence
This commit is contained in:
parent
7dd3a748be
commit
6a31a313b6
@ -127,7 +127,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestHostStartsPlayingWhileAlreadyWatching()
|
||||
public void TestHostRetriesWhileWatching()
|
||||
{
|
||||
loadSpectatingScreen();
|
||||
|
||||
@ -171,9 +171,8 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
sendFrames();
|
||||
waitForPlayer();
|
||||
|
||||
// should immediately exit and unbind from streaming client
|
||||
AddStep("stop spectating", () => (Stack.CurrentScreen as Player)?.Exit());
|
||||
AddUntilStep("spectating stopped", () => spectatorScreen.GetParentScreen() == null);
|
||||
AddUntilStep("spectating stopped", () => spectatorScreen.GetChildScreen() == null);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
Loading…
Reference in New Issue
Block a user