mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 11:23:00 +08:00
Add test coverage of crash scenario
This commit is contained in:
parent
21201e616d
commit
c51a2e169d
@ -74,6 +74,10 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
});
|
||||
AddStep("enter code", () => loginOverlay.ChildrenOfType<OsuTextBox>().First().Text = "88800088");
|
||||
assertAPIState(APIState.Online);
|
||||
|
||||
AddStep("set failing", () => { dummyAPI.SetState(APIState.Failing); });
|
||||
AddStep("return to online", () => { dummyAPI.SetState(APIState.Online); });
|
||||
|
||||
AddStep("clear handler", () => dummyAPI.HandleRequest = null);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user