﻿// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Screens;
using osu.Game.Screens.Multi;
using osu.Game.Screens.Multi.Lounge;
using osu.Game.Screens.Multi.Lounge.Components;

namespace osu.Game.Tests.Visual
{
    [TestFixture]
    public class TestCaseMultiScreen : ScreenTestCase
    {
        public override IReadOnlyList<Type> RequiredTypes => new[]
        {
            typeof(Multiplayer),
            typeof(LoungeSubScreen),
            typeof(FilterControl)
        };

        public TestCaseMultiScreen()
        {
            Multiplayer multi = new Multiplayer();

            AddStep(@"show", () => LoadScreen(multi));
            AddUntilStep(() => multi.IsCurrentScreen(), "wait until current");
            AddStep(@"exit", multi.Exit);
        }
    }
}

﻿// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Collections.Generic;
using NUnit.Framework;
using osu.Framework.Screens;
using osu.Game.Screens.Multi;
using osu.Game.Screens.Multi.Lounge;
using osu.Game.Screens.Multi.Lounge.Components;

namespace osu.Game.Tests.Visual
{
    [TestFixture]
    public class TestCaseMultiScreen : ScreenTestCase
    {
        public override IReadOnlyList<Type> RequiredTypes => new[]
        {
            typeof(Multiplayer),
            typeof(LoungeSubScreen),
            typeof(FilterControl)
        };

        public TestCaseMultiScreen()
        {
            Multiplayer multi = new Multiplayer();

            AddStep(@"show", () => LoadScreen(multi));
        }
    }
}

Remove exit step (needs login to show properly)
Remove exit step (needs login to show properly)
