mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Add test covering host retry after returning to spectator screen
This commit is contained in:
parent
6a31a313b6
commit
ce58bfdc4e
@ -175,6 +175,23 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
AddUntilStep("spectating stopped", () => spectatorScreen.GetChildScreen() == null);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestStopWatchingThenHostRetries()
|
||||
{
|
||||
loadSpectatingScreen();
|
||||
|
||||
start();
|
||||
sendFrames();
|
||||
waitForPlayer();
|
||||
|
||||
AddStep("stop spectating", () => (Stack.CurrentScreen as Player)?.Exit());
|
||||
AddUntilStep("spectating stopped", () => spectatorScreen.GetChildScreen() == null);
|
||||
|
||||
// host starts playing a new session
|
||||
start();
|
||||
waitForPlayer();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestWatchingBeatmapThatDoesntExistLocally()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user