mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +08:00
Fix test and add comment
This commit is contained in:
parent
fe53df90af
commit
024d3cc10a
@ -79,7 +79,12 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestToggleChatWithChannelJoined()
|
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());
|
AddStep("Close chat overlay", () => chatOverlay.Hide());
|
||||||
AddAssert("Channel selection overlay was hidden", () => chatOverlay.SelectionOverlayState == Visibility.Hidden);
|
AddAssert("Channel selection overlay was hidden", () => chatOverlay.SelectionOverlayState == Visibility.Hidden);
|
||||||
AddAssert("Chat overlay was hidden", () => chatOverlay.State.Value == Visibility.Hidden);
|
AddAssert("Chat overlay was hidden", () => chatOverlay.State.Value == Visibility.Hidden);
|
||||||
|
Loading…
Reference in New Issue
Block a user