From 8560c74c70e5ae97016f011d0fed60f53ac36f5d Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 29 Jul 2025 15:12:00 +0900 Subject: [PATCH] Add test coverage of long messages --- .../Visual/Online/TestSceneMessageNotifier.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/osu.Game.Tests/Visual/Online/TestSceneMessageNotifier.cs b/osu.Game.Tests/Visual/Online/TestSceneMessageNotifier.cs index be3dcfe21a..274d7f0c51 100644 --- a/osu.Game.Tests/Visual/Online/TestSceneMessageNotifier.cs +++ b/osu.Game.Tests/Visual/Online/TestSceneMessageNotifier.cs @@ -93,6 +93,17 @@ namespace osu.Game.Tests.Visual.Online } } + [Test] + public void TestLongMessages() + { + AddStep("close overlay", () => testContainer.ChatOverlay.Hide()); + + AddStep("long public", () => receiveMessage(friend, publicChannel, $"For some reason there were no tests testing very long messages, even though there should have been. Why {API.LocalUser.Value.Username} why?")); + + AddStep("long private", + () => receiveMessage(friend, privateMessageChannel, "For no good reason, we were not testing very long messages and how the notifications display when the message can't fit")); + } + [Test] public void TestPublicChannelMention() {