1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Fix test and add comment

This commit is contained in:
David Zhao 2019-06-26 18:00:40 +09:00
parent fe53df90af
commit 024d3cc10a

View File

@ -79,7 +79,12 @@ namespace osu.Game.Tests.Visual.UserInterface
[Test]
public void TestToggleChatWithChannelJoined()
{
AddStep("Join channel 1", () => channelManager.JoinChannel(channel1));
AddStep("Join channel 1", () =>
{
channelManager.JoinChannel(channel1);
// Temporarily here to circumvent https://github.com/ppy/osu/issues/5152
channelManager.OpenChannel(channel1.Name);
});
AddStep("Close chat overlay", () => chatOverlay.Hide());
AddAssert("Channel selection overlay was hidden", () => chatOverlay.SelectionOverlayState == Visibility.Hidden);
AddAssert("Chat overlay was hidden", () => chatOverlay.State.Value == Visibility.Hidden);