1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Apply all steps to same user panel so interactions can be observed

This commit is contained in:
Dean Herbert 2019-06-12 15:59:52 +09:00
parent fc1f778b82
commit bb8a77d27d

View File

@ -12,11 +12,12 @@ namespace osu.Game.Tests.Visual.Online
[TestFixture]
public class TestSceneUserPanel : OsuTestScene
{
private readonly UserPanel flyte;
private readonly UserPanel peppy;
public TestSceneUserPanel()
{
UserPanel flyte;
Add(new FillFlowContainer
{
Anchor = Anchor.Centre,
@ -60,12 +61,12 @@ namespace osu.Game.Tests.Visual.Online
[Test]
public void UserActivitiesTests()
{
AddStep("idle", () => { flyte.Activity.Value = null; });
AddStep("spectating", () => { flyte.Activity.Value = new UserActivity.Spectating(); });
AddStep("solo", () => { flyte.Activity.Value = new UserActivity.SoloGame(null, null); });
AddStep("choosing", () => { flyte.Activity.Value = new UserActivity.ChoosingBeatmap(); });
AddStep("editing", () => { flyte.Activity.Value = new UserActivity.Editing(null); });
AddStep("modding", () => { flyte.Activity.Value = new UserActivity.Modding(); });
AddStep("idle", () => { peppy.Activity.Value = null; });
AddStep("spectating", () => { peppy.Activity.Value = new UserActivity.Spectating(); });
AddStep("solo", () => { peppy.Activity.Value = new UserActivity.SoloGame(null, null); });
AddStep("choosing", () => { peppy.Activity.Value = new UserActivity.ChoosingBeatmap(); });
AddStep("editing", () => { peppy.Activity.Value = new UserActivity.Editing(null); });
AddStep("modding", () => { peppy.Activity.Value = new UserActivity.Modding(); });
}
}
}