diff --git a/DiscordChatExporter.Cli.Tests/Specs/HtmlContentSpecs.cs b/DiscordChatExporter.Cli.Tests/Specs/HtmlContentSpecs.cs index 9c3584da..3ce6c59d 100644 --- a/DiscordChatExporter.Cli.Tests/Specs/HtmlContentSpecs.cs +++ b/DiscordChatExporter.Cli.Tests/Specs/HtmlContentSpecs.cs @@ -2,7 +2,6 @@ using System.Threading.Tasks; using AngleSharp.Dom; using DiscordChatExporter.Cli.Tests.Infra; -using DiscordChatExporter.Core.Discord; using FluentAssertions; using Xunit; @@ -39,21 +38,4 @@ public class HtmlContentSpecs "Yeet" ); } - - [Fact] - public async Task Messages_cross_posted_from_other_guilds_are_rendered_with_the_server_tag() - { - // https://github.com/Tyrrrz/DiscordChatExporter/issues/633 - - // Act - var message = await ExportWrapper.GetMessageAsHtmlAsync( - ChannelIds.ReplyTestCases, - Snowflake.Parse("1072165330853576876") - ); - - // Assert - message.Text().Should().Contain("This is a test message from an announcement channel on another server"); - message.Text().Should().Contain("SERVER"); - message.QuerySelector(".chatlog__reply-link").Should().BeNull(); - } } \ No newline at end of file diff --git a/DiscordChatExporter.Cli.Tests/Specs/HtmlReplySpecs.cs b/DiscordChatExporter.Cli.Tests/Specs/HtmlReplySpecs.cs index a0e61e3a..5747b10e 100644 --- a/DiscordChatExporter.Cli.Tests/Specs/HtmlReplySpecs.cs +++ b/DiscordChatExporter.Cli.Tests/Specs/HtmlReplySpecs.cs @@ -71,4 +71,21 @@ public class HtmlReplySpecs // Assert message.Text().Should().Contain("used /poll"); } + + [Fact] + public async Task I_can_export_a_channel_that_contains_a_message_cross_posted_from_another_guild() + { + // https://github.com/Tyrrrz/DiscordChatExporter/issues/633 + + // Act + var message = await ExportWrapper.GetMessageAsHtmlAsync( + ChannelIds.ReplyTestCases, + Snowflake.Parse("1072165330853576876") + ); + + // Assert + message.Text().Should().Contain("This is a test message from an announcement channel on another server"); + message.Text().Should().Contain("SERVER"); + message.QuerySelector(".chatlog__reply-link").Should().BeNull(); + } } \ No newline at end of file